Lines Matching full:wrange
298 marisa::WRange wrange;
300 ASSERT(wrange.range().begin() == 0);
301 ASSERT(wrange.range().end() == 0);
302 ASSERT(wrange.range().pos() == 0);
304 ASSERT(wrange.begin() == 0);
305 ASSERT(wrange.end() == 0);
306 ASSERT(wrange.pos() == 0);
307 ASSERT(wrange.weight() == 0.0);
309 wrange = marisa::WRange(range, 4.0);
311 ASSERT(wrange.range().begin() == 1);
312 ASSERT(wrange.range().end() == 2);
313 ASSERT(wrange.range().pos() == 3);
315 ASSERT(wrange.begin() == 1);
316 ASSERT(wrange.end() == 2);
317 ASSERT(wrange.pos() == 3);
318 ASSERT(wrange.weight() == 4.0);
320 wrange.set_begin(5);
321 wrange.set_end(6);
322 wrange.set_pos(7);
323 wrange.set_weight(8.0);
325 ASSERT(wrange.begin() == 5);
326 ASSERT(wrange.end() == 6);
327 ASSERT(wrange.pos() == 7);
328 ASSERT(wrange.weight() == 8.0);