From cdfff1a18d2203b8493f8700ab694c1c05ef6161 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 16 Dec 2018 20:52:47 -0800 Subject: 4869 --- html/subx/040---tests.cc.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'html/subx/040---tests.cc.html') diff --git a/html/subx/040---tests.cc.html b/html/subx/040---tests.cc.html index f00d27e4..886bff17 100644 --- a/html/subx/040---tests.cc.html +++ b/html/subx/040---tests.cc.html @@ -97,11 +97,11 @@ if ('onhashchange' in window) { 32 void create_test_function(program& p) { 33 if (p.segments.empty()) return; 34 segment& code = p.segments.at(0); -35 trace(99, "transform") << "-- create 'run-tests'" << end(); +35 trace(99, "transform") << "-- create 'run-tests'" << end(); 36 vector<line> new_insts; -37 for (int i = 0; i < SIZE(code.lines); ++i) { +37 for (int i = 0; i < SIZE(code.lines); ++i) { 38 line& inst = code.lines.at(i); -39 for (int j = 0; j < SIZE(inst.words); ++j) { +39 for (int j = 0; j < SIZE(inst.words); ++j) { 40 const word& curr = inst.words.at(j); 41 if (*curr.data.rbegin() != ':') continue; // not a label 42 if (!starts_with(curr.data, "test-")) continue; @@ -117,9 +117,9 @@ if ('onhashchange' in window) { 52 53 string to_string(const segment& s) { 54 ostringstream out; -55 for (int i = 0; i < SIZE(s.lines); ++i) { +55 for (int i = 0; i < SIZE(s.lines); ++i) { 56 const line& l = s.lines.at(i); -57 for (int j = 0; j < SIZE(l.words); ++j) { +57 for (int j = 0; j < SIZE(l.words); ++j) { 58 if (j > 0) out << ' '; 59 out << to_string(l.words.at(j)); 60 } -- cgit 1.4.1-2-gfad0