it('does not break with raw code snippets', () => {
const snip = tgpu['~unstable'].rawCodeSnippet('const a = 1', d.Void);
const fn = () => {
'use gpu';
for (const a of tgpu.unroll([1, 2, 3])) {
snip.$;
}
};
expect(tgpu.resolve([fn])).toMatchInlineSnapshot(`
"fn fn_1() {
// unrolled iteration #0
const a = 1;
// unrolled iteration #1
const a = 1;
// unrolled iteration #2
const a = 1;
// ---
}"
`);
});