Add more tests.
This commit is contained in:
parent
b99307f7b7
commit
88cd22e22b
10 changed files with 27 additions and 0 deletions
tests
BIN
tests/images/diffs/smooth10.png
Normal file
BIN
tests/images/diffs/smooth10.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 4 KiB |
BIN
tests/images/diffs/smooth8.png
Normal file
BIN
tests/images/diffs/smooth8.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 10 KiB |
BIN
tests/images/diffs/smooth9.png
Normal file
BIN
tests/images/diffs/smooth9.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 10 KiB |
BIN
tests/images/masters/smooth10.png
Normal file
BIN
tests/images/masters/smooth10.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 9.2 KiB |
BIN
tests/images/masters/smooth8.png
Normal file
BIN
tests/images/masters/smooth8.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 4.3 KiB |
BIN
tests/images/masters/smooth9.png
Normal file
BIN
tests/images/masters/smooth9.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 4.4 KiB |
BIN
tests/images/rendered/smooth10.png
Normal file
BIN
tests/images/rendered/smooth10.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 11 KiB |
BIN
tests/images/rendered/smooth8.png
Normal file
BIN
tests/images/rendered/smooth8.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 11 KiB |
BIN
tests/images/rendered/smooth9.png
Normal file
BIN
tests/images/rendered/smooth9.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 11 KiB |
|
@ -199,3 +199,30 @@ block:
|
|||
let m = translate(vec2(50, 50)) * rotate(30.toRadians) * scale(vec2(0.1, 0.1))
|
||||
a.draw(b, m)
|
||||
doDiff(a, "smooth7")
|
||||
|
||||
block:
|
||||
let
|
||||
a = newImage(100, 100)
|
||||
b = readImage(&"tests/images/turtle.png")
|
||||
a.fill(rgba(255, 255, 255, 255))
|
||||
let m = scale(vec2(2, 2))
|
||||
a.draw(b, m)
|
||||
doDiff(a, "smooth8")
|
||||
|
||||
block:
|
||||
let
|
||||
a = newImage(100, 100)
|
||||
b = readImage(&"tests/images/turtle.png")
|
||||
a.fill(rgba(255, 255, 255, 255))
|
||||
let m = translate(vec2(1, 1)) * scale(vec2(2, 2))
|
||||
a.draw(b, m)
|
||||
doDiff(a, "smooth9")
|
||||
|
||||
block:
|
||||
let
|
||||
a = newImage(100, 100)
|
||||
b = readImage(&"tests/images/turtle.png")
|
||||
a.fill(rgba(255, 255, 255, 255))
|
||||
let m = translate(vec2(0.5, 0.5)) * scale(vec2(2, 2))
|
||||
a.draw(b, m)
|
||||
doDiff(a, "smooth10")
|
||||
|
|
Loading…
Reference in a new issue