Sha256: 123ca1ffb6099c12eac3bce54baa3d0ec20b93ceefed241d35998559d052a38a
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
# -*- coding: utf-8 -*- require 'Scanner' 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
re_expand-0.0.1 | test/test_scanner.rb |