Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

moved io test data into correct folder

  • Loading branch information...
commit 5607d5e93ad4788e01195396c71283f8871f9feb 1 parent 7e6c816
@chrisumbel authored
View
4 Makefile
@@ -18,11 +18,13 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
+SHELL := /bin/bash
+
benchmark:
@node benchmarks
test_clean:
- @ls ./spec/test_data/wordnet/download/* | xargs rm -f
+ @ls -1 ./io_spec/test_data/wordnet/download/{index,data}* | xargs rm -f
clean: test_clean
@find ./ -name *~ | xargs rm -f
View
1  io_spec/test_data/wordnet/download/README.txt
@@ -0,0 +1 @@
+This directory contains temporary files used during io tests.
View
12 io_spec/wordnet_spec.js
@@ -25,13 +25,13 @@ jasmine.asyncSpecWait.timeout = 30 * 1000;
describe('wordnet', function() {
it('should download files', function() {
- var wordnet = new WordNet('./spec/test_data/wordnet/download/', 'http://wordnet.naturalnode.com/');
+ var wordnet = new WordNet('./io_spec/test_data/wordnet/download/', 'http://wordnet.naturalnode.com/');
wordnet.lookup('entity', function(records) {
expect(records.length).toBe(1);
expect(records[0].lemma).toBe('entity');
- require('path').exists('./spec/test_data/wordnet/download/index.noun', function(exists) {
+ require('path').exists('./io_spec/test_data/wordnet/download/index.noun', function(exists) {
expect(exists).toBeTruthy();
asyncSpecDone();
});
@@ -41,12 +41,12 @@ describe('wordnet', function() {
});
it('should lookup synonyms', function() {
- var wordnet = new WordNet('./spec/test_data/wordnet/download/', 'http://wordnet.naturalnode.com/');
+ var wordnet = new WordNet('./io_spec/test_data/wordnet/download/', 'http://wordnet.naturalnode.com/');
wordnet.lookupSynonyms('entity', function(records) {
expect(records.length).toBe(3);
- require('path').exists('./spec/test_data/wordnet/download/index.noun', function(exists) {
+ require('path').exists('./io_spec/test_data/wordnet/download/index.noun', function(exists) {
expect(exists).toBeTruthy();
asyncSpecDone();
});
@@ -56,7 +56,7 @@ describe('wordnet', function() {
});
it('should lookup synonyms give a synset offset and a pos', function() {
- var wordnet = new WordNet('./spec/test_data/wordnet/download/', 'http://wordnet.naturalnode.com/');
+ var wordnet = new WordNet('./io_spec/test_data/wordnet/download/', 'http://wordnet.naturalnode.com/');
wordnet.getSynonyms(1740, 'n', function(records) {
expect(records.length).toBe(3);
@@ -67,7 +67,7 @@ describe('wordnet', function() {
});
it('should add records but once', function() {
- var wordnet = new WordNet('./spec/test_data/wordnet/download/', 'http://wordnet.naturalnode.com/');
+ var wordnet = new WordNet('./io_spec/test_data/wordnet/download/', 'http://wordnet.naturalnode.com/');
wordnet.lookup('node', function(records) {
expect(records.length).toBe(8);
Please sign in to comment.
Something went wrong with that request. Please try again.