Anonymous avatar Anonymous committed 426a2f8

Got "make test" to run again.

Comments (0)

Files changed (8)

solver/ruby/Makefile

 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #++
-all: kakuro-perms-db.rb
 
-kakuro-perms-db.rb: gen-kakuro-perms-db.rb
+DB_FILE = lib/kakuro_solver/perms_db.rb
+
+all: $(DB_FILE)
+
+$(DB_FILE): ./bin/gen-kakuro-perms-db.rb
 	ruby $< $@
 	
 test: all
-	rspec -I. --color t/*.rb
+	rspec -Ilib --color t/*.rb

solver/ruby/bin/dump-board.rb

-require "kakuro-board.rb"
+require "kakuro_solver/board"
 
 puts "Before new"
 $BOARD = Kakuro::Board.new

solver/ruby/lib/kakuro_solver/board.rb

 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #++
-require "kakuro-perms.rb"
-require "kakuro-perms-db.rb"
+require "kakuro_solver/perms"
+require "kakuro_solver/perms_db"
 require 'enumerator'
 
 module Enumerable

solver/ruby/t/check-perms.rb

 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #++
-require "kakuro-perms.rb"
+require "kakuro_solver/perms"
 
 def human_get_perms(mutator, sum, num)
     perms = mutator.get_perms(*mutator.human_to_internal(sum, num))

solver/ruby/t/merge-constraints.rb

 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #++
-require "kakuro-board.rb"
+require "kakuro_solver/board"
 
 class Object
     def ok()

solver/ruby/t/parse-board.rb

 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #++
-require "kakuro-board.rb"
+require "kakuro_solver/board"
 
 class Object
     def ok()

solver/ruby/t/solve-board.rb

 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #++
-require "kakuro-board.rb"
+require "kakuro_solver/board"
 
 class Object
     def ok()

solver/ruby/t/temp-system-test-solve-board.rb

 #++
 describe "System Test 1" do
     before do
-        @got_output = `ruby -I. bin/dump-board.rb`
+        @got_output = `ruby -Ilib bin/dump-board.rb`
     end
 
     it "should remain the same" do
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.