mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Add failing test
This commit is contained in:
8
concept-code/vs.d.ts
vendored
8
concept-code/vs.d.ts
vendored
@@ -6,6 +6,14 @@ declare namespace vs {
|
||||
export function inc(x: number): void;
|
||||
}
|
||||
|
||||
declare namespace Debug {
|
||||
export function log(...args: unknown[]): void;
|
||||
|
||||
export function makeCopyCounter<T = undefined>(
|
||||
tag?: T,
|
||||
): { tag: T; count: number };
|
||||
}
|
||||
|
||||
declare module "ffi:console" {
|
||||
type Console = {
|
||||
log(...args: unknown[]): void;
|
||||
|
||||
8
inputs/failing/copyCounting/subscript.ts
Normal file
8
inputs/failing/copyCounting/subscript.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
//! test_output(1)
|
||||
// Should be: 0
|
||||
|
||||
/// <reference path="../../../concept-code/vs.d.ts" />
|
||||
|
||||
export default function main() {
|
||||
return Debug.makeCopyCounter("x").count;
|
||||
}
|
||||
Reference in New Issue
Block a user