diff --git a/noir-projects/aztec-nr/aztec/src/keys/point_to_symmetric_key.nr b/noir-projects/aztec-nr/aztec/src/keys/point_to_symmetric_key.nr index ca3d26ccbf10..8454dc851bcb 100644 --- a/noir-projects/aztec-nr/aztec/src/keys/point_to_symmetric_key.nr +++ b/noir-projects/aztec-nr/aztec/src/keys/point_to_symmetric_key.nr @@ -25,6 +25,8 @@ fn check_point_to_symmetric_key() { ); let key = point_to_symmetric_key(secret, point); - let expected_key = [25,176,196,77,91,235,218,204,186,157,195,137,205,53,141,10,90,174,222,204,191,49,246,123,99,87,121,67,99,117,50,29]; + let expected_key = [ + 25, 176, 196, 77, 91, 235, 218, 204, 186, 157, 195, 137, 205, 53, 141, 10, 90, 174, 222, 204, 191, 49, 246, 123, 99, 87, 121, 67, 99, 117, 50, 29 + ]; assert_eq(key, expected_key); } diff --git a/yarn-project/foundation/src/testing/test_data.ts b/yarn-project/foundation/src/testing/test_data.ts index a92794e64f6a..dba6932cd5cc 100644 --- a/yarn-project/foundation/src/testing/test_data.ts +++ b/yarn-project/foundation/src/testing/test_data.ts @@ -66,7 +66,7 @@ export function updateInlineTestData(targetFileFromRepoRoot: string, itemName: s const logger = createConsoleLogger('aztec:testing:test_data'); const targetFile = getPathToFile(targetFileFromRepoRoot); const contents = readFileSync(targetFile, 'utf8').toString(); - const regex = new RegExp(`let ${itemName} = .*;`, 'g'); + const regex = new RegExp(`let ${itemName} = [\\s\\S]*?;`, 'g'); if (!regex.exec(contents)) { throw new Error(`Test data marker for ${itemName} not found in ${targetFile}`); }