Browse Source

added new tests.

SakiKawasaki 5 years ago
parent
commit
5e141d886d
6 changed files with 33 additions and 3 deletions
  1. 2 1
      README.md
  2. BIN
      tests/test10.exe
  3. 14 0
      tests/test10.nim
  4. 15 0
      tests/test10.svg
  5. BIN
      tests/test7.exe
  6. 2 2
      tests/test7.svg

+ 2 - 1
README.md

@@ -15,4 +15,5 @@ The Nim badgemaker tool.
 [![test6](https://github.com/Ethosa/badgemaker/blob/master/tests/test6.svg)](https://github.com/Ethosa/badgemaker/blob/master/tests/test6.svg)  
 [![test7](https://github.com/Ethosa/badgemaker/blob/master/tests/test7.svg)](https://github.com/Ethosa/badgemaker/blob/master/tests/test7.svg)  
 [![test8](https://github.com/Ethosa/badgemaker/blob/master/tests/test8.svg)](https://github.com/Ethosa/badgemaker/blob/master/tests/test8.svg)  
-[![test9](https://github.com/Ethosa/badgemaker/blob/master/tests/test9.svg)](https://github.com/Ethosa/badgemaker/blob/master/tests/test9.svg)
+[![test9](https://github.com/Ethosa/badgemaker/blob/master/tests/test9.svg)](https://github.com/Ethosa/badgemaker/blob/master/tests/test9.svg)  
+[![test10](https://github.com/Ethosa/badgemaker/blob/master/tests/test10.svg)](https://github.com/Ethosa/badgemaker/blob/master/tests/test10.svg)

BIN
tests/test10.exe


+ 14 - 0
tests/test10.nim

@@ -0,0 +1,14 @@
+# author: Ethosa
+import badgemaker
+
+var badge = newBadge(
+  label="Programming language:", value="Nim",
+  label_color="#282A36", value_color="fuchsia",
+  label_text_color="#e0e0e0", value_text_color="#333",
+  width=220, style="plastic"
+)
+
+badge.setIcon "C://Users/Admin/Desktop/nim.png"
+badge.setFont "Monospace"
+
+badge.write "test10.svg"

File diff suppressed because it is too large
+ 15 - 0
tests/test10.svg


BIN
tests/test7.exe


File diff suppressed because it is too large
+ 2 - 2
tests/test7.svg


Some files were not shown because too many files changed in this diff