add basic test case for now in helloworld

reset helloworld back to original example

reset helloworld back to original example
This commit is contained in:
Brendan Hansknecht 2023-04-04 17:47:38 -07:00
parent 08179d2a65
commit ff414610ca
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

@ -377,7 +377,7 @@ pub fn constrain_expr(
}
IngestedFile(bytes, anno) => match &anno.typ {
Type::Apply(Symbol::STR_STR, _, _) => {
if let Err(_) = std::str::from_utf8(bytes) {
if std::str::from_utf8(bytes).is_err() {
todo!("cause an error for the type being wrong due to not being a utf8 string");
}