Skip to content

Commit

Permalink
Initial migration to shared submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylon Edwards committed Mar 29, 2014
1 parent 5859fef commit 39cb06b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "shared"]
path = shared
url = git@github.com:dylon/liblevenshtein-shared.git
1 change: 1 addition & 0 deletions shared
Submodule shared added at c6fa27
2 changes: 1 addition & 1 deletion test/collection/dawg.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ fs = require 'fs'
{levenshtein: {Dawg}} = require '../../src/collection/dawg'

programming_languages = do ->
path = "#{__dirname}/../../../shared/resources/programming-languages.txt"
path = "#{__dirname}/../../shared/resources/programming-languages.txt"
programming_languages = fs.readFileSync(path, 'utf8').split('\n')
if programming_languages[programming_languages.length - 1] is ''
programming_languages.pop() #-> drop the empty string
Expand Down
2 changes: 1 addition & 1 deletion test/levenshtein/builder.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ seed_random = require 'seed-random'
{insertion, deletion, substitution, transposition, merge, split} = operations

[dawg, lorem_ipsum] = do ->
path = "#{__dirname}/../../../shared/resources/lorem-ipsum-terms.txt"
path = "#{__dirname}/../../shared/resources/lorem-ipsum-terms.txt"
lorem_ipsum = fs.readFileSync(path, 'utf8').split('\n')
if lorem_ipsum[lorem_ipsum.length - 1] is ''
lorem_ipsum.pop() #-> drop the empty string
Expand Down
2 changes: 1 addition & 1 deletion test/levenshtein/distance.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ fs = require 'fs'
{levenshtein: {distance}} = require '../../src/levenshtein/distance'

lorem_ipsum = do ->
path = "#{__dirname}/../../../shared/resources/lorem-ipsum-terms.txt"
path = "#{__dirname}/../../shared/resources/lorem-ipsum-terms.txt"
lorem_ipsum = fs.readFileSync(path, 'utf8').split('\n')
if lorem_ipsum[lorem_ipsum.length - 1] is ''
lorem_ipsum.pop() #-> drop the empty string
Expand Down
2 changes: 1 addition & 1 deletion test/levenshtein/transducer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ fs = require 'fs'
{levenshtein: {Transducer}} = require '../../src/levenshtein/transducer'

lorem_ipsum = do ->
path = "#{__dirname}/../../../shared/resources/lorem-ipsum-terms.txt"
path = "#{__dirname}/../../shared/resources/lorem-ipsum-terms.txt"
lorem_ipsum = fs.readFileSync(path, 'utf8').split('\n')
if lorem_ipsum[lorem_ipsum.length - 1] is ''
lorem_ipsum.pop() #-> drop the empty string
Expand Down

0 comments on commit 39cb06b

Please sign in to comment.