Action is now completely working
This commit is contained in:
parent
482e89adf8
commit
0da5867a81
4 changed files with 86 additions and 32 deletions
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
require 'bundler/setup'
|
||||
require 'hammer'
|
||||
require 'minitest/autorun'
|
||||
|
|
@ -84,7 +85,7 @@ class ParserTest < Minitest::Test
|
|||
def test_token_encoding(encoding='UTF-8')
|
||||
string = '今日'.encode(encoding)
|
||||
parser = Hammer::Parser.token(string)
|
||||
assert_equal string, parser.parse(string)[:ast][:data][:bytes].token
|
||||
assert_equal string, parser.parse(string).ast.unmarshal
|
||||
end
|
||||
|
||||
def test_token_encoding_2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue