Skip to content

Commit

Permalink
Merge branch 'develop' into feature/more-intuitive-radius/1
Browse files Browse the repository at this point in the history
  • Loading branch information
aruZeta committed Sep 10, 2022
2 parents 5271c79 + 0f3e289 commit 4d21394
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/testQRGen.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import
"."/[myTestSuite],
QRgen
QRgen,
std/[os]

benchmarkTest "Minimal test":
let qr = newQR("https://github.com/aruZeta/QRgen")
Expand All @@ -13,28 +14,27 @@ benchmarkTest "Emojis in byte mode (utf-8)":
benchmarkTest "Testing svg":
let qr = newQR("https://github.com/aruZeta/QRgen")
writeFile(
"build/testingSvg.svg",
"build" / "testingSvg.svg",
qr.printSvg
)

benchmarkTest "Testing svg with colors":
let qr = newQR("https://github.com/aruZeta/QRgen")
writeFile(
"build/testingSvg.svg",
"build" / "testingSvg.svg",
qr.printSvg("#1d2021", "#98971a")
)

benchmarkTest "Testing rounded svg":
let qr = newQR("https://github.com/aruZeta/QRgen")
writeFile(
"build/testingRoundedSvg.svg",
"build" / "testingRoundedSvg.svg",
qr.printSvg("#1d2021", "#98971a", alRad = 60)
)

benchmarkTest "Testing very rounded svg":
let qr = newQR("https://github.com/aruZeta/QRgen")
writeFile(
"build/testingVeryRoundedSvg.svg",
"build" / "testingVeryRoundedSvg.svg",
qr.printSvg("#1d2021", "#98971a", alRad = 100, moRad = 100)
)

0 comments on commit 4d21394

Please sign in to comment.