• Home
  • Raw
  • Download

Lines Matching refs:sym

51         symbols<char, int> sym(syms);  in main()  local
53 BOOST_TEST((test("Joel", sym))); in main()
54 BOOST_TEST((test("Ruby", sym))); in main()
55 BOOST_TEST((test("Tenji", sym))); in main()
56 BOOST_TEST((test("Tutit", sym))); in main()
57 BOOST_TEST((test("Kim", sym))); in main()
58 BOOST_TEST((test("Joey", sym))); in main()
59 BOOST_TEST((!test("XXX", sym))); in main()
66 symbols<char, int> sym(syms, data); in main() local
69 BOOST_TEST((test_attr("Joel", sym, i))); in main()
71 BOOST_TEST((test_attr("Ruby", sym, i))); in main()
73 BOOST_TEST((test_attr("Tenji", sym, i))); in main()
75 BOOST_TEST((test_attr("Tutit", sym, i))); in main()
77 BOOST_TEST((test_attr("Kim", sym, i))); in main()
79 BOOST_TEST((test_attr("Joey", sym, i))); in main()
81 BOOST_TEST((!test_attr("XXX", sym, i))); in main()
85 symbols<> sym; in main() local
90 sym += a; in main()
91 sym += b; in main()
92 BOOST_TEST((test("abc", sym))); in main()
93 BOOST_TEST((test("def", sym))); in main()
94 sym = a; in main()
95 BOOST_TEST((test("abc", sym))); in main()
96 BOOST_TEST((!test("def", sym))); in main()
100 sym = arr; in main()
101 BOOST_TEST((test("a", sym))); in main()
102 BOOST_TEST((!test("b", sym))); in main()
107 sym = c, cc; in main()
108 BOOST_TEST((test("x", sym))); in main()
109 BOOST_TEST((test("y", sym))); in main()
110 BOOST_TEST((!test("z", sym))); in main()
116 symbols<char, int> sym; in main() local
117 sym.add in main()
126 BOOST_TEST(test_attr("a", r(phx::ref(sym)), i)); in main()
128 BOOST_TEST(test_attr("b", r(phx::ref(sym)), i)); in main()
130 BOOST_TEST(!test("c", r(phx::ref(sym)))); in main()
135 symbols<char, int> sym; in main() local
136 sym.add("a", 1)("b", 2); in main()
138 BOOST_TEST(!sym.find("c")); in main()
140 BOOST_TEST(sym.find("a") && *sym.find("a") == 1); in main()
141 BOOST_TEST(sym.find("b") && *sym.find("b") == 2); in main()
143 BOOST_TEST(sym.at("a") == 1); in main()
144 BOOST_TEST(sym.at("b") == 2); in main()
145 BOOST_TEST(sym.at("c") == 0); in main()
147 BOOST_TEST(sym.find("a") && *sym.find("a") == 1); in main()
148 BOOST_TEST(sym.find("b") && *sym.find("b") == 2); in main()
149 BOOST_TEST(sym.find("c") && *sym.find("c") == 0); in main()
151 symbols<char, int> const_sym(sym); in main()
160 BOOST_TEST(*sym.prefix_find(first, last) == 1 && first == str1 + 1); in main()
164 BOOST_TEST(!sym.prefix_find(first, last) && first == str2); in main()
168 symbols <char, int> sym,sym2; in main() local
169 sym.name("test"); in main()
170 BOOST_TEST(sym.name()=="test"); in main()
171 sym2 = sym; in main()
174 symbols <char,int> sym3(sym); in main()
180 symbols<char, int> sym; in main() local
181 BOOST_TEST(sym.at("foo") == 0); in main()
182 sym.at("foo") = 1; in main()
183 BOOST_TEST(sym.at("foo") == 1); in main()
184 BOOST_TEST(sym.at("fool") == 0); in main()
185 sym.at("fool") = 2; in main()
186 BOOST_TEST(sym.find("foo") && *sym.find("foo") == 1); in main()
187 BOOST_TEST(sym.find("fool") && *sym.find("fool") == 2); in main()
188 BOOST_TEST(!sym.find("foolish")); in main()
189 BOOST_TEST(!sym.find("foot")); in main()
190 BOOST_TEST(!sym.find("afoot")); in main()
194 BOOST_TEST(*sym.prefix_find(first, last) == 2 && first == str + 4); in main()
197 BOOST_TEST(*sym.prefix_find(first, last) == 2 && first == str + 4); in main()
200 BOOST_TEST(*sym.prefix_find(first, last) == 1 && first == str + 3); in main()
203 BOOST_TEST(*sym.prefix_find(first, last) == 1 && first == str + 3); in main()
206 BOOST_TEST(!sym.prefix_find(first, last) && first == str); in main()
224 symbols<char, int> sym; in main() local
225 sym += get_str("Joel"); in main()
226 sym += get_str("Ruby"); in main()
228 BOOST_TEST((test("Joel", sym))); in main()
229 BOOST_TEST((test("Ruby", sym))); in main()