From 2c3ac8114109ac76fcba1c6eb04d144102153db7 Mon Sep 17 00:00:00 2001 From: krauthaufen Date: Mon, 21 Mar 2022 09:00:17 +0100 Subject: [PATCH] improved `AList.sub` test --- .github/workflows/publish.yml | 3 +- RELEASE_NOTES.md | 5 +++ deploy.targets | 1 - docs.sh => publishDocs.sh | 4 +-- src/Test/FSharp.Data.Adaptive.Tests/AList.fs | 33 +++++++++++++++++++- start-fable.cmd => startFableDemo.cmd | 0 start-fable.sh => startFableDemo.sh | 0 7 files changed, 40 insertions(+), 6 deletions(-) delete mode 100644 deploy.targets rename docs.sh => publishDocs.sh (71%) rename start-fable.cmd => startFableDemo.cmd (100%) rename start-fable.sh => startFableDemo.sh (100%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8939f9b0..7f0b1175 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,6 @@ on: push: branches: - master - - updates paths: - RELEASE_NOTES.md - .github/workflows/publish.yml @@ -64,7 +63,7 @@ jobs: - name: Pack env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: dotnet aardpack FSharp.Data.Adaptive.sln --notag --norelease + run: dotnet aardpack FSharp.Data.Adaptive.sln --notag - name: Upload Package uses: actions/upload-artifact@v2 with: diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index abf5ff66..ea09bbc1 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,8 @@ +### 1.2.9 +* new `AList.sub` implementation +* switched to `aardpack` based build with CI publishing +* switched to newest fsdocs + ### 1.2.8 * Index-Deletion now handled via Async/Task instead of its own thread (threads not supported on blazor-wasm) diff --git a/deploy.targets b/deploy.targets deleted file mode 100644 index b164bb36..00000000 --- a/deploy.targets +++ /dev/null @@ -1 +0,0 @@ -https://www.nuget.org/api/v2/package awx.key diff --git a/docs.sh b/publishDocs.sh similarity index 71% rename from docs.sh rename to publishDocs.sh index ace2760b..d696148a 100755 --- a/docs.sh +++ b/publishDocs.sh @@ -6,8 +6,8 @@ rm -dfr doctmp/** cp -R output/** doctmp cd doctmp -git config --global user.email "fsdocs@aardvarkians.com" -git config --global user.name "fsdocs" +git config --local user.email "fsdocs@aardvarkians.com" +git config --local user.name "fsdocs" git add . git commit -m "Update docs" git push origin gh-pages diff --git a/src/Test/FSharp.Data.Adaptive.Tests/AList.fs b/src/Test/FSharp.Data.Adaptive.Tests/AList.fs index b97496c6..4508f726 100644 --- a/src/Test/FSharp.Data.Adaptive.Tests/AList.fs +++ b/src/Test/FSharp.Data.Adaptive.Tests/AList.fs @@ -864,27 +864,58 @@ let ``[AList] subA``() = let r = res.GetReader() test r + // change offset transact (fun () -> o.Value <- 10) test r + // change count transact (fun () -> c.Value <- 5) test r + // remove in slice transact (fun () -> l.RemoveAt 11 |> ignore) test r + // update in sclice transact (fun () -> l[11] <- 1111) test r + // remove before slice transact (fun () -> l.RemoveAt 0 |> ignore) test r + // remove after slice transact (fun () -> l.RemoveAt 70 |> ignore) test r + // change offset transact (fun () -> o.Value <- 3) test r - + + // insert in slice + transact (fun () -> l.InsertAt(4, 1234) |> ignore) + test r + + // clear list + transact (fun () -> l.Clear()) + test r + + transact (fun () -> c.Value <- 3) + test r + + // insert before + transact (fun () -> l.AddRange [9;8;7]) + test r + + // insert less elements + transact (fun () -> l.AddRange [6;5]) + test r + + // insert more elements + transact (fun () -> l.AddRange [4;3]) + test r + + [] let ``[AList] skipA``() = let l = clist [1..100] diff --git a/start-fable.cmd b/startFableDemo.cmd similarity index 100% rename from start-fable.cmd rename to startFableDemo.cmd diff --git a/start-fable.sh b/startFableDemo.sh similarity index 100% rename from start-fable.sh rename to startFableDemo.sh