Skip to content

Commit

Permalink
improved AList.sub test
Browse files Browse the repository at this point in the history
  • Loading branch information
krauthaufen committed Mar 21, 2022
1 parent 978887f commit 2c3ac81
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
branches:
- master
- updates
paths:
- RELEASE_NOTES.md
- .github/workflows/publish.yml
Expand Down Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
1 change: 0 additions & 1 deletion deploy.targets

This file was deleted.

4 changes: 2 additions & 2 deletions docs.sh → publishDocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ rm -dfr doctmp/**
cp -R output/** doctmp
cd doctmp

git config --global user.email "[email protected]"
git config --global user.name "fsdocs"
git config --local user.email "[email protected]"
git config --local user.name "fsdocs"
git add .
git commit -m "Update docs"
git push origin gh-pages
Expand Down
33 changes: 32 additions & 1 deletion src/Test/FSharp.Data.Adaptive.Tests/AList.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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


[<Test>]
let ``[AList] skipA``() =
let l = clist [1..100]
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 2c3ac81

Please sign in to comment.