Lines Matching full:wrange
302 marisa_alpha::WRange wrange;
304 ASSERT(wrange.range().begin() == 0);
305 ASSERT(wrange.range().end() == 0);
306 ASSERT(wrange.range().pos() == 0);
308 ASSERT(wrange.begin() == 0);
309 ASSERT(wrange.end() == 0);
310 ASSERT(wrange.pos() == 0);
311 ASSERT(wrange.weight() == 0.0);
313 wrange = marisa_alpha::WRange(range, 4.0);
315 ASSERT(wrange.range().begin() == 1);
316 ASSERT(wrange.range().end() == 2);
317 ASSERT(wrange.range().pos() == 3);
319 ASSERT(wrange.begin() == 1);
320 ASSERT(wrange.end() == 2);
321 ASSERT(wrange.pos() == 3);
322 ASSERT(wrange.weight() == 4.0);
324 wrange.set_begin(5);
325 wrange.set_end(6);
326 wrange.set_pos(7);
327 wrange.set_weight(8.0);
329 ASSERT(wrange.begin() == 5);
330 ASSERT(wrange.end() == 6);
331 ASSERT(wrange.pos() == 7);
332 ASSERT(wrange.weight() == 8.0);