blob: 7e9f5bd7c3c5caf5f138b041a2d69d884ef48ad4 [file] [log] [blame]
<!DOCTYPE html>
<html>
<meta charset=utf-8>
<meta name="timeout" content="long">
<title>Copying.</title>
<script src="js/whlsl-test-harness.js"></script>
<script src="js/webgpu-functions.js"></script>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
const whlslTests = {};
whlslTests.doubleNot = async () =>
{
let program = `
bool foo(bool x)
{
return !!x;
}
`;
assert_equals(await callBoolFunction(program, "foo", [makeBool(true)]), true);
assert_equals(await callBoolFunction(program, "foo", [makeBool(false)]), false);
}
runTests(whlslTests);
</script>
</html>