1. Shlomi Fish
  2. kakuro-cross-sums

Commits

shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b  committed 426a2f8

Got "make test" to run again.

  • Participants
  • Parent commits 9eb2949
  • Branches default

Comments (0)

Files changed (8)

File solver/ruby/Makefile

View file
 # 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

File solver/ruby/bin/dump-board.rb

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

File solver/ruby/lib/kakuro_solver/board.rb

View file
 # 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

File solver/ruby/t/check-perms.rb

View file
 # 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))

File solver/ruby/t/merge-constraints.rb

View file
 # 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()

File solver/ruby/t/parse-board.rb

View file
 # 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()

File solver/ruby/t/solve-board.rb

View file
 # 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()

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

View file
 #++
 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