-
Notifications
You must be signed in to change notification settings - Fork 0
/
vikash_output.txt
82 lines (55 loc) · 4.84 KB
/
vikash_output.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
M307861BELYWN:String_Formatter vikashkumar.choubey$ g++ vikash_formatter.cpp
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "In {0} science, the {1} numbers always include {2}. In {3}, some {{4} define them to include {2}} and some do not." "computer,natural,zero,mathematics,texts"
In computer science, the natural numbers always include zero. In mathematics, some {texts define them to include zero} and some do not.
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "Hello {0}{1"
Hello {0}{1
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "Hello {0}{1" "infiswift,technologies"
Hello infiswift{1
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "Hello {0}{1" "infiswift,technologies"
Hello infiswift{1
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "In {0} science, the {1} numbers always include {2}. In {3}, some {{4} define them to include {2}{} and some do not." "computer,natural,zero,mathematics,texts"
In computer science, the natural numbers always include zero. In mathematics, some {texts define them to include zero{} and some do not.
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "In {0} science, the {1} numbers always include {2}. In {3}, some {{4} define them to include {2}{} {1234} and some do not." "computer,natural,zero,mathematics,texts"
In computer science, the natural numbers always include zero. In mathematics, some {texts define them to include zero{} natural34} and some do not.
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "In {0} science, the {1} numbers always include {2}. In {3}, some {{4} define them to include {2}{} {1234} and some do not." "computer,natural,zero,mathematics,texts"
In computer science, the natural numbers always include zero. In mathematics, some computer} define them to include zerozero natural34} and some do not.
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "In {0} science, the {1} numbers always include {2}. In {3}, some {{4} define them to include {2}{} {1234} and some do not." "computer,natural,zero,mathematics,texts"
In computer science, the natural numbers always include zero. In mathematics, some {texts define them to include zero{} {1234} and some do not.
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "Hello {0}{-1}" "sfs,sdf"
Hello sfs{-1}
// New Test cases:
M307861BELYWN:String_Formatter vikashkumar.choubey$ g++ vikash_formatter.cpp
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "{0}{2}" ",sdf,"
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "vikash {0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11}, {}}{}{1230234234234234234234}" "1,2,3,4,5,6,7,8,9,0,10,vik"
vikash 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 10, vik, {}}{}{1230234234234234234234}
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "vikash {0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11}, {}}{}{1230234234234234234234} {2147483647}" "1,2,3,4,5,6,7,8,9,0,10,vik"
vikash 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 10, vik, {}}{}{1230234234234234234234} {2147483647}
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "Hello {0}{1" "infiswift,technologies"
Hello infiswift{1
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "In {0} science, the {1} numbers always include {2}. In {3}, some {{4} define them to include {2}{} {1234} and some do not." "computer,natural,zero,mathematics,texts"
In computer science, the natural numbers always include zero. In mathematics, some {texts define them to include zero{} {1234} and some do not.
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "In {0} science, the {1} numbers always include {2}. In {3}, some {{4} define them to include {2} and some do not." "computer,natural,zero,mathematics,texts"
In computer science, the natural numbers always include zero. In mathematics, some {texts define them to include zero and some do not.
// 2 Mail test case:
M307861BELYWN:String_Formatter vikashkumar.choubey$ g++ vikash_formatter.cpp
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "{1}" "a,a"
a
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "{0}" ""
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "{1}" ""
{1}
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out
Please provide valid inputs. Expecting minimum 1 arguments
M307861BELYWN:String_Formatter vikashkumar.choubey$ g++ vikash_formatter.cpp
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "{0}" ""
{0}
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "{1}" ""
{1}
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "{1}" "a"
{1}
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "{1}" "a,a"
a
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "{1}" "a,aa"
aa
M307861BELYWN:String_Formatter vikashkumar.choubey$ ./a.out "{1}{2}" "a,aa,"
aa{2}
M307861BELYWN:String_Formatter vikashkumar.choubey$