diff --git a/oop_macro.nimble b/extensions.nimble similarity index 50% rename from oop_macro.nimble rename to extensions.nimble index 9162690..0f3e7ae 100644 --- a/oop_macro.nimble +++ b/extensions.nimble @@ -1,8 +1,8 @@ # Package -version = "0.1.0" -author = "CodeDoes" -description = "OOP macro" +version = "0.2.0" +author = "Joey Yakimowich-Payne" +description = "Nim extensions" license = "MIT" srcDir = "src" diff --git a/src/oop_macro.nim b/src/extensions/oop.nim similarity index 100% rename from src/oop_macro.nim rename to src/extensions/oop.nim diff --git a/tests/test1.nim b/tests/test1.nim index ccb240f..d364ce5 100644 --- a/tests/test1.nim +++ b/tests/test1.nim @@ -1,8 +1,8 @@ -import oop_macro - +import extensions/oop_macro + import strutils -var +var output = "" class Animal of RootObj: @@ -10,7 +10,7 @@ class Animal of RootObj: name: string age: int - + method init*(name: string, age: int){.base.}= self.name = name self.age = age @@ -63,4 +63,4 @@ echo check echo "####" echo output echo "####" -doAssert(output==check,"""echo matches""") \ No newline at end of file +doAssert(output==check,"""echo matches""")