feat(fsharp): m01-m06 util, model, rules, random, spawn, game, view with Expecto tests
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
183821737e
commit
9cbefeb2be
@@ -0,0 +1,14 @@
|
||||
module Snake.Tests.M06View
|
||||
|
||||
open Expecto
|
||||
open Snake
|
||||
open Snake.Tests.Fixtures
|
||||
|
||||
[<Tests>]
|
||||
let tests =
|
||||
testList "M06 View" [
|
||||
testCase "CELL is 20 pixels" (fun () -> Expect.equal View.CELL 20 "CELL")
|
||||
|
||||
yield! fixtureTests "m06-view" "view" (fun c ->
|
||||
Expect.equal (View.view (gameState (arg 0 c))) (list shape (expected c)) "view")
|
||||
]
|
||||
Reference in New Issue
Block a user