Action is now completely working

This commit is contained in:
Dan Hirsch 2014-01-11 02:55:02 +01:00
parent 482e89adf8
commit 0da5867a81
4 changed files with 86 additions and 32 deletions

View file

@ -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