package scientific.utils
public class AssertionException <: Exception {
public init() {
}
public init(message: String) {
}
}
public func assertEqual<T>(a: T, b: T): Unit where T <: Equatable<T> {
if (a == b) {
return ()
} else {
throw AssertionException()
}
}
public func assertTrue(b: Bool): Unit {
if (b) {
return ()
} else {
throw AssertionException()
}
}
public func assertFalse(b: Bool): Unit {
if (!b) {
return ()
} else {
throw AssertionException()
}
}