-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor priest spells for testability
- Loading branch information
Showing
9 changed files
with
138 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Include="index.html" /> | ||
<Compile Include="Core\Common.fs" /> | ||
<Compile Include="Core\CQRS.fs" /> | ||
<Compile Include="Core\Coroutine.fs" /> | ||
<Compile Include="Core\Packrat.fs" /> | ||
<Compile Include="UI\CommonUI.fs" /> | ||
<Compile Include="UI\LocalStorage.fs" /> | ||
<Compile Include="UI\DFRPG\Chargen.fs" /> | ||
<Compile Include="UI\DFRPG\ChargenView.fs" /> | ||
<Compile Include="UI\ADND\PriestSpells.fs" /> | ||
<Compile Include="UI\ADND\PriestSpellsView.fs" /> | ||
<Compile Include="UI\Components.fs" /> | ||
<Compile Include="Main.fs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Fable.Core" Version="4.2.0" /> | ||
<PackageReference Include="Fable.React" Version="9.3.0" /> | ||
<PackageReference Include="Feliz" Version="2.7.0" /> | ||
<PackageReference Include="Feliz.Listeners" Version="1.1.0" /> | ||
<PackageReference Include="Feliz.Router" Version="4.0.0" /> | ||
<PackageReference Include="Feliz.UseElmish" Version="2.5.0" /> | ||
<PackageReference Include="Thoth.Json" Version="10.2.0" /> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Include="index.html" /> | ||
<Compile Include="Core\Common.fs" /> | ||
<Compile Include="Core\CQRS.fs" /> | ||
<Compile Include="Core\Coroutine.fs" /> | ||
<Compile Include="Core\Packrat.fs" /> | ||
<Compile Include="Domain\ADND\PriestSpells.fs" /> | ||
<Compile Include="UI\CommonUI.fs" /> | ||
<Compile Include="UI\LocalStorage.fs" /> | ||
<Compile Include="UI\DFRPG\Chargen.fs" /> | ||
<Compile Include="UI\DFRPG\ChargenView.fs" /> | ||
<Compile Include="UI\ADND\PriestSpellsView.fs" /> | ||
<Compile Include="UI\Components.fs" /> | ||
<Compile Include="Main.fs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Fable.Core" Version="4.2.0" /> | ||
<PackageReference Include="Fable.React" Version="9.3.0" /> | ||
<PackageReference Include="Feliz" Version="2.7.0" /> | ||
<PackageReference Include="Feliz.Listeners" Version="1.1.0" /> | ||
<PackageReference Include="Feliz.Router" Version="4.0.0" /> | ||
<PackageReference Include="Feliz.UseElmish" Version="2.5.0" /> | ||
<PackageReference Include="Thoth.Json" Version="10.2.0" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module Packrat.Accept | ||
open Expecto | ||
open Domain.ADND.PriestSpells | ||
open Swensen.Unquote | ||
|
||
[<Tests>] | ||
let tests = testList "Accept.Packrat" [ | ||
testCase "smoke" <| fun () -> | ||
// make sure the basic parser is working | ||
test <@ defaultSpheres() <> [] @> | ||
test <@ defaultDeities() <> [] @> | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters