From fcc161e70502caf34bc0206d2c428e8341e97fa6 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 24 May 2020 22:43:18 -0700 Subject: 6397 Drop '---' section boundaries from filenames. I noticed them confusing tab-completion for certain advanced shell setups. --- html/040---tests.cc.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'html/040---tests.cc.html') diff --git a/html/040---tests.cc.html b/html/040---tests.cc.html index e2dbd53e..3b0ebb27 100644 --- a/html/040---tests.cc.html +++ b/html/040---tests.cc.html @@ -2,7 +2,7 @@ -Mu - 040---tests.cc +Mu - 040tests.cc @@ -55,7 +55,7 @@ if ('onhashchange' in window) { -https://github.com/akkartik/mu/blob/master/040---tests.cc +https://github.com/akkartik/mu/blob/master/040tests.cc
  1 //: Automatically aggregate functions starting with 'test-' into a test suite
  2 //: called 'run-tests'. Running this function will run all tests.
@@ -69,12 +69,12 @@ if ('onhashchange' in window) {
 10 //: We don't rely on any transforms running in previous layers, but this layer
 11 //: knows about labels and will emit labels for previous layers to transform.
 12 :(after "Begin Transforms")
-13 Transform.push_back(create_test_function);
+13 Transform.push_back(create_test_function);
 14 
 15 :(code)
-16 void test_run_test() {
-17   Mem.push_back(vma(0xbd000000));  // manually allocate memory
-18   Reg[ESP].u = 0xbd000100;
+16 void test_run_test() {
+17   Mem.push_back(vma(0xbd000000));  // manually allocate memory
+18   Reg[ESP].u = 0xbd000100;
 19   run(
 20       "== code 0x1\n"  // code segment
 21       "main:\n"
@@ -90,7 +90,7 @@ if ('onhashchange' in window) {
 31   );
 32 }
 33 
-34 void create_test_function(program& p) {
+34 void create_test_function(program& p) {
 35   if (p.segments.empty()) return;
 36   segment& code = *find(p, "code");
 37   trace(3, "transform") << "-- create 'run-tests'" << end();
@@ -108,7 +108,7 @@ if ('onhashchange' in window) {
 49   if (new_insts.empty()) return;  // no tests found
 50   code.lines.push_back(label("run-tests"));
 51   code.lines.insert(code.lines.end(), new_insts.begin(), new_insts.end());
-52   code.lines.push_back(ret());
+52   code.lines.push_back(ret());
 53 }
 54 
 55 string to_string(const segment& s) {
@@ -127,7 +127,7 @@ if ('onhashchange' in window) {
 68 line call(string s) {
 69   line result;
 70   result.words.push_back(call());
-71   result.words.push_back(disp32(s));
+71   result.words.push_back(disp32(s));
 72   return result;
 73 }
 74 
@@ -138,14 +138,14 @@ if ('onhashchange' in window) {
 79   return result;
 80 }
 81 
-82 word disp32(string s) {
+82 word disp32(string s) {
 83   word result;
 84   result.data = s;
 85   result.metadata.push_back("disp32");
 86   return result;
 87 }
 88 
-89 line ret() {
+89 line ret() {
 90   line result;
 91   result.words.push_back(word());
 92   result.words.back().data = "c3";
-- 
cgit 1.4.1-2-gfad0