diff --git a/failedTests.txt b/failedTests.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/javascript/index.js b/javascript/index.js index 32ebd6b74..24f568ebb 100644 --- a/javascript/index.js +++ b/javascript/index.js @@ -365,7 +365,7 @@ async function main() { await recursiveXmlToHtmlInOrder("parseXml"); writeRewritedSearchData(); // this is meant to be temp; also, will remove the original "generateSearchData" after the updation at the frontend is completed. - testIndexSearch(); + //testIndexSearch(); } } diff --git a/javascript/searchRewriteTest.js b/javascript/searchRewriteTest.js index 7814eec99..94e86f573 100644 --- a/javascript/searchRewriteTest.js +++ b/javascript/searchRewriteTest.js @@ -3,8 +3,7 @@ /* todos and issues: -have not test urls, and urls for exercise can be impoved, currently point to the closest paragraph -what is the mechanism for link to snippet and latex? propably need to modify the frontend + propably need to modify the frontend to enable link to snippets works fine for things like <= (numeric comparison operator), but not for || (logical disjunction); could not test for " (double quote) did not process the "seexml" file, so no see also in index did not process the latex, roman, italic, etc. @@ -167,6 +166,7 @@ averager (constraint), 261 (ex. 3.33) // I include 2 out of the 5 columns of all the index with A here. +// manually tested the exercise urls to accumulate and accumulate_n, they are correct import { indexTrie, search, getUrl, autoComplete } from "./searchRewrite" import fs from "fs"; diff --git a/urls.txt b/urls.txt deleted file mode 100644 index ae5bb4227..000000000 --- a/urls.txt +++ /dev/null @@ -1 +0,0 @@ -{"abs":["https://sourceacademy.nus.edu.sg/sicpjs/1.1.6#p1","https://sourceacademy.nus.edu.sg/sicpjs/1.1.6#p4"],"absolute value":["https://sourceacademy.nus.edu.sg/sicpjs/1.1.6#p1"],"abstract data":["https://sourceacademy.nus.edu.sg/sicpjs/2.1#p2"],"abstraction":["https://sourceacademy.nus.edu.sg/sicpjs/1.1.8#p3","https://sourceacademy.nus.edu.sg/sicpjs/1.3.1#p3","https://sourceacademy.nus.edu.sg/sicpjs/4#p3","https://sourceacademy.nus.edu.sg/sicpjs/4.3.2#p1","https://sourceacademy.nus.edu.sg/sicpjs/5.1.2","https://sourceacademy.nus.edu.sg/sicpjs/5.1.2"],"abstraction barriers":["https://sourceacademy.nus.edu.sg/sicpjs/2#p7","https://sourceacademy.nus.edu.sg/sicpjs/2.1.2#p1","https://sourceacademy.nus.edu.sg/sicpjs/2.1.2","https://sourceacademy.nus.edu.sg/sicpjs/2.4#p1","https://sourceacademy.nus.edu.sg/sicpjs/2.4#p6","https://sourceacademy.nus.edu.sg/sicpjs/2.5#p2","https://sourceacademy.nus.edu.sg/sicpjs/4.1.2#p3","https://sourceacademy.nus.edu.sg/sicpjs/4.4.4#p34"],"abstract models for data":["https://sourceacademy.nus.edu.sg/sicpjs/2.1.3#footnote-1"],"abstract syntax":["https://sourceacademy.nus.edu.sg/sicpjs/4.1.1#p3","https://sourceacademy.nus.edu.sg/sicpjs/4.4.4#p2"],"accelerated_sequence":["https://sourceacademy.nus.edu.sg/sicpjs/3.5.3#p9"],"accumulate":["https://sourceacademy.nus.edu.sg/sicpjs/1.3.1#ex-1.32","https://sourceacademy.nus.edu.sg/sicpjs/1.3.1#ex-1.33","https://sourceacademy.nus.edu.sg/sicpjs/2.2.3#p8","https://sourceacademy.nus.edu.sg/sicpjs/2.2.3#ex-2.38","https://sourceacademy.nus.edu.sg/sicpjs/2.2.3#ex-2.43"],"accumulate_n":["https://sourceacademy.nus.edu.sg/sicpjs/2.2.3#ex-2.36","https://sourceacademy.nus.edu.sg/sicpjs/2.2.3#ex-2.43"],"accumulator":["https://sourceacademy.nus.edu.sg/sicpjs/2.2.3#p4","https://sourceacademy.nus.edu.sg/sicpjs/3.1.1#ex-3.1","https://sourceacademy.nus.edu.sg/sicpjs/3.1.1#ex-3.4"],"Ackermann's function":["https://sourceacademy.nus.edu.sg/sicpjs/1.2.1#ex-1.10","https://sourceacademy.nus.edu.sg/sicpjs/1.2.1#ex-1.10"],"acquire a mutex":["https://sourceacademy.nus.edu.sg/sicpjs/3.4.2#p16"],"actions, in register machine":["https://sourceacademy.nus.edu.sg/sicpjs/5.1.1","https://sourceacademy.nus.edu.sg/sicpjs/5.1.1"],"actual_value":["https://sourceacademy.nus.edu.sg/sicpjs/4.2.2#p6"],"Ada":["https://sourceacademy.nus.edu.sg/sicpjs/4.4.1#ex-4.61","https://sourceacademy.nus.edu.sg/sicpjs/4.4.1#ex-4.61"],"Adams, Norman I., IV":["https://sourceacademy.nus.edu.sg/sicpjs/4.1.7#footnote-1"],"add (generic)":["https://sourceacademy.nus.edu.sg/sicpjs/2.5.1#p2","https://sourceacademy.nus.edu.sg/sicpjs/2.5.3#p10","https://sourceacademy.nus.edu.sg/sicpjs/2.5.3#p12"],"add_action":["https://sourceacademy.nus.edu.sg/sicpjs/3.3.4#p8","https://sourceacademy.nus.edu.sg/sicpjs/3.3.4#p12"],"add_complex":["https://sourceacademy.nus.edu.sg/sicpjs/2.4.1#p6"],"add_complex_to_javascript_num":["https://sourceacademy.nus.edu.sg/sicpjs/2.5.2#p2"],"addend":["https://sourceacademy.nus.edu.sg/sicpjs/2.3.2#p6"],"adder (primitive constraint)":["https://sourceacademy.nus.edu.sg/sicpjs/3.3.5#p11"],"adder":["https://sourceacademy.nus.edu.sg/sicpjs/3.3.4#p3","https://sourceacademy.nus.edu.sg/sicpjs/3.3.4#p6","https://sourceacademy.nus.edu.sg/sicpjs/3.3.4#ex-3.30","https://sourceacademy.nus.edu.sg/sicpjs/3.3.4#ex-3.32"],"add_interval":["https://sourceacademy.nus.edu.sg/sicpjs/2.1.4#p4"],"additivity":["https://sourceacademy.nus.edu.sg/sicpjs/2#p10","https://sourceacademy.nus.edu.sg/sicpjs/2.4#p4","https://sourceacademy.nus.edu.sg/sicpjs/2.4.3","https://sourceacademy.nus.edu.sg/sicpjs/2.4.3","https://sourceacademy.nus.edu.sg/sicpjs/2.5.1#p6"],"add_lists":["https://sourceacademy.nus.edu.sg/sicpjs/4.2.3#p3"],"add_poly":["https://sourceacademy.nus.edu.sg/sicpjs/2.5.3#p6"],"add_rat":["https://sourceacademy.nus.edu.sg/sicpjs/2.1.1#p4"],"address":["https://sourceacademy.nus.edu.sg/sicpjs/5.3.1#p1"],"address arithmetic":["https://sourceacademy.nus.edu.sg/sicpjs/5.3.1#p1"],"add_rule_or_assertion":["https://sourceacademy.nus.edu.sg/sicpjs/4.4.4#p27"],"add_streams":["https://sourceacademy.nus.edu.sg/sicpjs/3.5.2#p7"],"add_terms":["https://sourceacademy.nus.edu.sg/sicpjs/2.5.3#p10"],"add_to_agenda":["https://sourceacademy.nus.edu.sg/sicpjs/3.3.4#p15","https://sourceacademy.nus.edu.sg/sicpjs/3.3.4#p24"],"add_vect":["https://sourceacademy.nus.edu.sg/sicpjs/2.2.4#ex-2.46","https://sourceacademy.nus.edu.sg/sicpjs/2.2.4#ex-2.52"],"adjoin_arg":["https://sourceacademy.nus.edu.sg/sicpjs/5.4.2#footnote-3"],"adjoining to a list with pair":["https://sourceacademy.nus.edu.sg/sicpjs/2.2.1#p7"],"adjoin_set":["https://sourceacademy.nus.edu.sg/sicpjs/2.3.3#p2","https://sourceacademy.nus.edu.sg/sicpjs/2.3.3#p3","https://sourceacademy.nus.edu.sg/sicpjs/2.3.3#ex-2.61","https://sourceacademy.nus.edu.sg/sicpjs/2.3.3#p12","https://sourceacademy.nus.edu.sg/sicpjs/2.3.3#ex-2.66","https://sourceacademy.nus.edu.sg/sicpjs/2.3.4#p14"],"adjoin_term":["https://sourceacademy.nus.edu.sg/sicpjs/2.5.3#p9","https://sourceacademy.nus.edu.sg/sicpjs/2.5.3#p16"],"Adleman, Leonard":["https://sourceacademy.nus.edu.sg/sicpjs/1.2.6#footnote-5"],"administrative assistant, importance of":["https://sourceacademy.nus.edu.sg/sicpjs/4.4.1#p7"],"advance_pc":["https://sourceacademy.nus.edu.sg/sicpjs/5.2.3#p4"],"after_delay":["https://sourceacademy.nus.edu.sg/sicpjs/3.3.4#p8","https://sourceacademy.nus.edu.sg/sicpjs/3.3.4#p16"],"A'h-mose":["https://sourceacademy.nus.edu.sg/sicpjs/1.2.4#footnote-4"],"algebraic expression":["https://sourceacademy.nus.edu.sg/sicpjs/2.3.2","https://sourceacademy.nus.edu.sg/sicpjs/2.3.2","https://sourceacademy.nus.edu.sg/sicpjs/2.3.2#p7","https://sourceacademy.nus.edu.sg/sicpjs/2.3.2#p7","https://sourceacademy.nus.edu.sg/sicpjs/2.3.2","https://sourceacademy.nus.edu.sg/sicpjs/2.3.2","https://sourceacademy.nus.edu.sg/sicpjs/2.5.3#p1"],"algebraic specification for data":["https://sourceacademy.nus.edu.sg/sicpjs/2.1.3#footnote-1"]} \ No newline at end of file