Skip to content

Commit 2c3ac81

Browse files
committed
improved AList.sub test
1 parent 978887f commit 2c3ac81

7 files changed

Lines changed: 40 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
push:
44
branches:
55
- master
6-
- updates
76
paths:
87
- RELEASE_NOTES.md
98
- .github/workflows/publish.yml
@@ -64,7 +63,7 @@ jobs:
6463
- name: Pack
6564
env:
6665
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67-
run: dotnet aardpack FSharp.Data.Adaptive.sln --notag --norelease
66+
run: dotnet aardpack FSharp.Data.Adaptive.sln --notag
6867
- name: Upload Package
6968
uses: actions/upload-artifact@v2
7069
with:

RELEASE_NOTES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### 1.2.9
2+
* new `AList.sub` implementation
3+
* switched to `aardpack` based build with CI publishing
4+
* switched to newest fsdocs
5+
16
### 1.2.8
27
* Index-Deletion now handled via Async/Task instead of its own thread (threads not supported on blazor-wasm)
38

deploy.targets

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs.sh renamed to publishDocs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ rm -dfr doctmp/**
66
cp -R output/** doctmp
77
cd doctmp
88

9-
git config --global user.email "fsdocs@aardvarkians.com"
10-
git config --global user.name "fsdocs"
9+
git config --local user.email "fsdocs@aardvarkians.com"
10+
git config --local user.name "fsdocs"
1111
git add .
1212
git commit -m "Update docs"
1313
git push origin gh-pages

src/Test/FSharp.Data.Adaptive.Tests/AList.fs

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,27 +864,58 @@ let ``[AList] subA``() =
864864
let r = res.GetReader()
865865
test r
866866

867+
// change offset
867868
transact (fun () -> o.Value <- 10)
868869
test r
869870

871+
// change count
870872
transact (fun () -> c.Value <- 5)
871873
test r
872874

875+
// remove in slice
873876
transact (fun () -> l.RemoveAt 11 |> ignore)
874877
test r
875878

879+
// update in sclice
876880
transact (fun () -> l[11] <- 1111)
877881
test r
878882

883+
// remove before slice
879884
transact (fun () -> l.RemoveAt 0 |> ignore)
880885
test r
881886

887+
// remove after slice
882888
transact (fun () -> l.RemoveAt 70 |> ignore)
883889
test r
884890

891+
// change offset
885892
transact (fun () -> o.Value <- 3)
886893
test r
887-
894+
895+
// insert in slice
896+
transact (fun () -> l.InsertAt(4, 1234) |> ignore)
897+
test r
898+
899+
// clear list
900+
transact (fun () -> l.Clear())
901+
test r
902+
903+
transact (fun () -> c.Value <- 3)
904+
test r
905+
906+
// insert before
907+
transact (fun () -> l.AddRange [9;8;7])
908+
test r
909+
910+
// insert less elements
911+
transact (fun () -> l.AddRange [6;5])
912+
test r
913+
914+
// insert more elements
915+
transact (fun () -> l.AddRange [4;3])
916+
test r
917+
918+
888919
[<Test>]
889920
let ``[AList] skipA``() =
890921
let l = clist [1..100]
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)