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