Skip to content

Commit 797378a

Browse files
committed
Add tests for equality and inequality, bump version
1 parent 6ebd396 commit 797378a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ManualMemory"
22
uuid = "d125e4d3-2237-4719-b19c-fa641b8a4667"
33
authors = ["chriselrod <[email protected]> and contributors"]
4-
version = "0.1.7"
4+
version = "0.1.8"
55

66
[compat]
77
julia = "1.5"

test/runtests.jl

+7
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ using Test
3535
# Test construction with existing data
3636
s = (1,2,3,4,5)
3737
@test MemoryBuffer(s).data === s
38+
39+
# Test equality and inequality
40+
@test MemoryBuffer((1,2,3,4,5)) == MemoryBuffer((1,2,3,4,5))
41+
@test MemoryBuffer((1,2,3,4,6)) != MemoryBuffer((1,2,3,4,5))
42+
@test MemoryBuffer((0x01,0x02)) == MemoryBuffer((1,2))
43+
@test MemoryBuffer((0x01,0x02)) != MemoryBuffer((0x01,0x02,0x03))
44+
3845
end
3946

4047
using ThreadingUtilities

0 commit comments

Comments
 (0)