Skip to content

Commit d243ffe

Browse files
added a test case, removed some debug stuffs, removed the unidecode files from showing up in code coverage
1 parent d445e1b commit d243ffe

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ script:
2121
- busted --verbose --coverage
2222

2323
after_success:
24-
- luacov-coveralls --exclude $TRAVIS_BUILD_DIR/env
24+
- luacov-coveralls --exclude $TRAVIS_BUILD_DIR/env --exclude unidecode/
2525

2626
branches:
2727
except:

spec/unidecode_spec.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ local unidecodeTest = {
55
{"Herp", "Herp"},
66
{"北亰", "Bei Jing"},
77
{"læti", "laeti"},
8+
{"læti", "𝔓"},
89
}
910

1011
describe("unicorndecode", function()

unicorndecode.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,6 @@ function unicorndecode.decode(inputString)
134134
-- print(p, c)
135135
-- add the equivalent ascii char to the output
136136
count = count + 1
137-
if count == 4933 then
138-
print(p, c)
139-
end
140137
output[count] = unicodeMagics[math.floor(c/256)][(c % 256)+1]
141138
end
142139

0 commit comments

Comments
 (0)