mirror of
https://github.com/Smaug123/FicroKanSharp
synced 2025-10-21 18:58:39 +00:00
Add a reifier
This commit is contained in:
@@ -43,16 +43,10 @@ module Geometry =
|
||||
|> TypedTerm.Literal
|
||||
|> verticalo
|
||||
|> Goal.evaluate
|
||||
|> Stream.toList
|
||||
|> List.exactlyOne
|
||||
|> shouldEqual (
|
||||
Map.ofList
|
||||
[
|
||||
VariableCount 0, TypedTerm.compile (TypedTerm.Literal 1)
|
||||
VariableCount 1, TypedTerm.compile (TypedTerm.Literal 1)
|
||||
VariableCount 2, TypedTerm.compile (TypedTerm.Literal 3)
|
||||
]
|
||||
)
|
||||
|> Reify.withRespectToFirst
|
||||
|> Seq.exactlyOne
|
||||
|> Option.get
|
||||
|> shouldEqual (TypedTerm.compile (TypedTerm.literal 1))
|
||||
|
||||
(Line (
|
||||
TypedTerm.Literal (Point (TypedTerm.Literal 1, TypedTerm.Literal 1)),
|
||||
|
Reference in New Issue
Block a user