Closed e45lee closed 7 years ago
Something that extends the little demo in the PR would be nice:
;(define foo (new sync-database% [path 'memory])) ;(send foo apply-create "test" "12345" #{(hash 'bar #{(hash) :: JSExpr}) :: (HashTable Symbol JSExpr)} #f) ;(send foo apply-update "test" "12345" #{(hash 'foo.baz 2) :: (HashTable Symbol JSExpr)} #f) ;(send foo fetch "test" "12345") ;(send foo apply-partial-update "test" "12345" #{(hash 'foo.baz 10) :: (HashTable Symbol JSExpr)} #f) ;(send foo apply-partial-delete "test" "X") ;(send foo fetch "test" "12345") ;(send foo apply-partials 3) ;(send foo fetch "test" "12345")
My PR now contains these tests (haven't expanded on them yet) integrated into our existing racket tests
Something that extends the little demo in the PR would be nice: