Added error tests

This commit is contained in:
Adam Fowler
2021-03-12 10:14:17 +00:00
parent 633f494e18
commit 6be7a382fb
3 changed files with 60 additions and 20 deletions

View File

@@ -1,10 +1,4 @@
enum HBMustacheError: Error {
case sectionCloseNameIncorrect
case unfinishedSectionName
case expectedSectionEnd
}
public class HBMustacheTemplate {
public init(string: String) throws {
self.tokens = try Self.parse(string)