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