 	return result
 }
 
-func makeAllTests(_ testfunctions: TestFunctions) -> String {
-	var result = "\nextension " + testfunctions.classname + " {\n"
+func makeAllTests(_ testclass: TestClass) -> String {
+	var result = "\nextension " + testclass.classname + " {\n"
 	result += indentation + "static var allTests = [\n"
-	result += testfunctions.funcs.map { testfunc in
+	result += testclass.funcs.map { testfunc in
 		indentation + indentation + "(\"\(testfunc)\", \(testfunc)),\n"
 		}.joined()
 	result += indentation + indentation + "]\n"

	return result
}

guard let swiftfile = try main.arguments.first.map ({try open($0)}) else {
	exit(errormessage: "Missing argument for swift file")
}

print(makeAllTests(getTestFunctions(swiftfile).last!))




import SwiftShell
import Foundation

let indentation = "\t"

extension String {
	func subString(between: String, and: String) -> String? {
