Lines Matching refs:ac

29 	int ac = 0;  in test_argv()  local
33 argv_free(av, ac); \ in test_argv()
35 ac = -1; \ in test_argv()
39 ASSERT_INT_EQ(argv_split("", &ac, &av, 0), 0); in test_argv()
40 ASSERT_INT_EQ(ac, 0); in test_argv()
44 ASSERT_INT_EQ(argv_split(" ", &ac, &av, 0), 0); in test_argv()
45 ASSERT_INT_EQ(ac, 0); in test_argv()
52 ASSERT_INT_EQ(argv_split("leamas", &ac, &av, 0), 0); in test_argv()
53 ASSERT_INT_EQ(ac, 1); in test_argv()
58 ASSERT_INT_EQ(argv_split("smiley leamas", &ac, &av, 0), 0); in test_argv()
59 ASSERT_INT_EQ(ac, 2); in test_argv()
68 ASSERT_INT_EQ(argv_split("\"smiley\"", &ac, &av, 0), 0); in test_argv()
69 ASSERT_INT_EQ(ac, 1); in test_argv()
74 ASSERT_INT_EQ(argv_split("leamas \" smiley \"", &ac, &av, 0), 0); in test_argv()
75 ASSERT_INT_EQ(ac, 2); in test_argv()
81 ASSERT_INT_EQ(argv_split("\"smiley leamas\"", &ac, &av, 0), 0); in test_argv()
82 ASSERT_INT_EQ(ac, 1); in test_argv()
87 ASSERT_INT_EQ(argv_split("smiley\" leamas\" liz", &ac, &av, 0), 0); in test_argv()
88 ASSERT_INT_EQ(ac, 2); in test_argv()
97 ASSERT_INT_EQ(argv_split("\\\"smiley\\'", &ac, &av, 0), 0); in test_argv()
98 ASSERT_INT_EQ(ac, 1); in test_argv()
103 ASSERT_INT_EQ(argv_split("'\\'smiley\\\"'", &ac, &av, 0), 0); in test_argv()
104 ASSERT_INT_EQ(ac, 1); in test_argv()
109 ASSERT_INT_EQ(argv_split("smiley\\'s leamas\\'", &ac, &av, 0), 0); in test_argv()
110 ASSERT_INT_EQ(ac, 2); in test_argv()
116 ASSERT_INT_EQ(argv_split("leamas\\\\smiley", &ac, &av, 0), 0); in test_argv()
117 ASSERT_INT_EQ(ac, 1); in test_argv()
122 ASSERT_INT_EQ(argv_split("leamas\\\\ \\\\smiley", &ac, &av, 0), 0); in test_argv()
123 ASSERT_INT_EQ(ac, 2); in test_argv()
129 ASSERT_INT_EQ(argv_split("smiley\\ leamas", &ac, &av, 0), 0); in test_argv()
130 ASSERT_INT_EQ(ac, 1); in test_argv()
138 ASSERT_INT_EQ(argv_split("'smiley\\ leamas'", &ac, &av, 0), 0); in test_argv()
139 ASSERT_INT_EQ(ac, 1); in test_argv()
144 ASSERT_INT_EQ(argv_split("\"smiley\\ leamas\"", &ac, &av, 0), 0); in test_argv()
145 ASSERT_INT_EQ(ac, 1); in test_argv()
153 ASSERT_INT_EQ(argv_split("# gold", &ac, &av, 0), 0); in test_argv()
154 ASSERT_INT_EQ(ac, 2); in test_argv()
160 ASSERT_INT_EQ(argv_split("# gold", &ac, &av, 1), 0); in test_argv()
161 ASSERT_INT_EQ(ac, 0); in test_argv()
165 ASSERT_INT_EQ(argv_split("leamas#gold", &ac, &av, 1), 0); in test_argv()
166 ASSERT_INT_EQ(ac, 1); in test_argv()
171 ASSERT_INT_EQ(argv_split("\"leamas # gold\"", &ac, &av, 1), 0); in test_argv()
172 ASSERT_INT_EQ(ac, 1); in test_argv()
177 ASSERT_INT_EQ(argv_split("\"leamas\"#gold", &ac, &av, 1), 0); in test_argv()
178 ASSERT_INT_EQ(ac, 1); in test_argv()