From 4aa4507a431e4f2f485d52c429dd6ac089392abe Mon Sep 17 00:00:00 2001 From: Neta London <67196883+netalondon@users.noreply.github.com> Date: Mon, 16 Sep 2024 16:03:27 +0300 Subject: [PATCH] Fix Mux4way16.cmp typo (#457) --- projects/src/project_01/11_mux4way16.ts | 2 +- web/src/versions.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/projects/src/project_01/11_mux4way16.ts b/projects/src/project_01/11_mux4way16.ts index 5a4606832..88662c78c 100644 --- a/projects/src/project_01/11_mux4way16.ts +++ b/projects/src/project_01/11_mux4way16.ts @@ -6,7 +6,7 @@ export const cmp = `| a | b | c | | 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 00 | 0001001000110100 | | 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 01 | 1001100001110110 | | 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 10 | 1010101010101010 | -| 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 11 | 0101010101010101 ||`; +| 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 11 | 0101010101010101 |`; export const hdl = `// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. diff --git a/web/src/versions.ts b/web/src/versions.ts index 257a4dd5c..d2eec711b 100644 --- a/web/src/versions.ts +++ b/web/src/versions.ts @@ -2,7 +2,7 @@ import { FileSystem } from "@davidsouther/jiffies/lib/esm/fs.js"; import { resetFiles, resetTests } from "@nand2tetris/projects/loader.js"; const VERSION_KEY = "version"; -const CURRENT_VERSION = 11; +const CURRENT_VERSION = 12; export function getVersion() { return Number(localStorage.getItem(VERSION_KEY) ?? "0"); @@ -67,4 +67,7 @@ const versionUpdates: Record Promise> = { 10: async (fs: FileSystem) => { await resetTests(fs, [5]); }, + 11: async (fs: FileSystem) => { + await resetTests(fs, [1]); + }, };