Sha256: f51e1143313171fe0282807ae3bbe8f6fcca59d815ba51ba97c16445c1a6a8d3
Contents?: true
Size: 563 Bytes
Versions: 2
Compression:
Stored size: 563 Bytes
Contents
# -*- coding: utf-8 -*- module ReExpand class ScannerTest < Test::Unit::TestCase def setup end def teardown end def test_1 s = Scanner.new('abc*def') assert_equal s.gettoken, 'abc' assert_equal s.gettoken, '*' assert_equal s.gettoken, 'def' end def test_2 s = Scanner.new("(a\tb|c\td)") assert_equal s.gettoken, "(" assert_equal s.gettoken, "a\tb" assert_equal s.gettoken, '|' assert_equal s.gettoken, "c\td" assert_equal s.gettoken, ')' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
re_expand-0.0.3 | test/test_scanner.rb |
re_expand-0.0.2 | test/test_scanner.rb |