Navigation Menu

Skip to content

Commit

Permalink
added appropriate pragmas to top of spec files
Browse files Browse the repository at this point in the history
  • Loading branch information
rapha committed Apr 30, 2011
1 parent 83da7af commit 62db410
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -13,7 +13,7 @@ game.cmxa: src/piece.cmx src/row.cmx src/col.cmx src/columns.cmx src/line.cmx sr
$(OCAMLOPT) -a -package batteries src/piece.cmx src/row.cmx src/col.cmx src/columns.cmx src/line.cmx src/lines.cmx src/board.cmx src/player.cmx src/ai.cmx src/game.cmx -o game.cmxa

spec: game.cma spec/*.ml
ospecl -I src spec/*.ml
ospecl -I src -color spec/*.ml

tui.byte: game.cma src/tui.ml
$(OCAMLC) -thread -linkpkg game.cma src/tui.ml -o tui.byte
Expand Down
11 changes: 11 additions & 0 deletions spec/columns_spec.ml
@@ -1,6 +1,17 @@
#use "topfind"

#require "unix"
#require "ospecl"
open Ospecl.Spec
open Ospecl.Matchers

#require "batteries"
open Batteries_uni

#load "col.cmo"
#load "row.cmo"
#load "columns.cmo"

let specs = [
describe "Columns" [
describe ".append" begin
Expand Down
9 changes: 9 additions & 0 deletions spec/line_spec.ml
@@ -1,6 +1,15 @@
#use "topfind"

#require "unix"
#require "ospecl"
open Ospecl.Spec
open Ospecl.Matchers

#require "batteries"
open Batteries_uni

#load "line.cmo"

let specs = [
describe "Line" [
describe ".include cell" [
Expand Down

0 comments on commit 62db410

Please sign in to comment.