Skip to content

Commit ebbc1c9

Browse files
committed
Merge pull request exercism#102 from ZacharyRSmith/filenames
Standardize filenames re: #30.
2 parents 4e5a87b + 767c369 commit ebbc1c9

46 files changed

Lines changed: 46 additions & 46 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ OUTDIR := $(shell mktemp -d "$(TMPDIR)/$(ASSIGNMENT).XXXXXXXXXX")
1010
# language specific config (tweakable per language)
1111
FILEEXT := "js"
1212
EXAMPLE := "example.$(FILEEXT)"
13-
TSTFILE := "$(ASSIGNMENT)_test.spec.$(FILEEXT)"
13+
TSTFILE := "$(subst -,_,$(ASSIGNMENT))_test.spec.$(FILEEXT)"
1414

1515
# development dependencies
1616
node_modules: package.json
@@ -19,9 +19,9 @@ node_modules: package.json
1919

2020
test-assignment: node_modules
2121
@echo "running tests for: $(ASSIGNMENT)"
22-
@cp big-integer.$(FILEEXT) $(OUTDIR)
22+
@cp big_integer.$(FILEEXT) $(OUTDIR)
2323
@cp $(ASSIGNMENT)/$(TSTFILE) $(OUTDIR)
24-
@cp $(ASSIGNMENT)/$(EXAMPLE) $(OUTDIR)/$(ASSIGNMENT).$(FILEEXT)
24+
@cp $(ASSIGNMENT)/$(EXAMPLE) $(OUTDIR)/$(subst -,_,$(ASSIGNMENT)).$(FILEEXT)
2525
@sed -i.original 's/\bxit\b/it/g' $(OUTDIR)/*spec.$(FILEEXT)
2626
@./node_modules/.bin/jasmine-node --captureExceptions $(OUTDIR)/$(TSTFILE)
2727

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var atbash = require('./atbash-cipher');
1+
var atbash = require('./atbash_cipher');
22

33
describe("encode", function() {
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var Beer = require('./beer-song');
1+
var Beer = require('./beer_song');
22

33
describe('Beer', function() {
44

File renamed without changes.

binary-search-tree/binary-search-tree_test.spec.js renamed to binary-search-tree/binary_search_tree_test.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var Bst = require('./binary-search-tree');
1+
var Bst = require('./binary_search_tree');
22

33
function recordAllData(bst) {
44
var out = [];
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var BinarySearch = require('./binary-search');
1+
var BinarySearch = require('./binary_search');
22

33
describe('BinarySearch', function() {
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var bracket = require('./bracket-push');
1+
var bracket = require('./bracket_push');
22

33
describe("bracket push", function() {
44
it("checks for appropriate bracketing in a set of brackets", function() {

circular-buffer/circular-buffer_test.spec.js renamed to circular-buffer/circular_buffer_test.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
var circularBuffer = require('./circular-buffer').circularBuffer;
2-
var bufferEmptyException = require('./circular-buffer').bufferEmptyException;
3-
var bufferFullException = require('./circular-buffer').bufferFullException;
1+
var circularBuffer = require('./circular_buffer').circularBuffer;
2+
var bufferEmptyException = require('./circular_buffer').bufferEmptyException;
3+
var bufferFullException = require('./circular_buffer').bufferFullException;
44

55
describe("CircularBuffer", function() {
66

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var Crypto = require('./crypto-square');
1+
var Crypto = require('./crypto_square');
22

33
describe("Crypto",function() {
44
it("normalize strange characters",function() {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var CustomSet = require('./custom-set');
1+
var CustomSet = require('./custom_set');
22

33
describe('CustomSet', function() {
44

0 commit comments

Comments
 (0)