mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-16 10:55:09 +00:00
Add initial test
This commit is contained in:
4 files changed
+18
-2
No files matched your search
+2
-1
@@ -1,2 +1,3 @@
|
||||
(test
|
||||
(name gilded_rose))
|
||||
(name gilded_rose)
|
||||
(libraries gilded_rose alcotest))
|
||||
@@ -0,0 +1,11 @@
|
||||
open Gilded_rose
|
||||
|
||||
let test () =
|
||||
let items = Items.v ~items:[ Item.v "Foo" 10 20 ] () in
|
||||
Alcotest.(check string)
|
||||
"Broken test" "Fixme"
|
||||
(List.hd items |> fun item -> item.name)
|
||||
|
||||
let () =
|
||||
let open Alcotest in
|
||||
run "Gilded Rose" [ ("Our first test", [ test_case "fixme" `Quick test ]) ]
|
||||
Reference in new issue
Block a user