MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / string_literal_content_preserved

Function string_literal_content_preserved

tests/integration/ir_generation.rs:410–423  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

408// -- Global string constants ---------------------------------------------------
409
410#[test]
411fn string_literal_creates_global_string() {
412 // String literals are byte slices.
413 let source = r#"type Text = u8[]
414main: () -> i32 {
415 msg: Text = "hello"
416 return 0
417}"#;
418 let result = compile_ok(source);
419 assert!(
420 !result.ir_program.global_strings.is_empty(),
421 "expected at least one global string constant"
422 );
423}
424
425#[test]
426fn string_literal_content_preserved() {

Callers

nothing calls this directly

Calls 3

anyMethod · 0.80
compile_okFunction · 0.70
containsMethod · 0.45

Tested by

no test coverage detected