Remove tests for Big Table/Teams benchmark

These benchmarks is distributed under "NO LICENSE", so including this
these benchmarks are not permitted
This commit is contained in:
Kogia-sima 2020-12-23 22:40:55 +09:00
parent 6b0d67cd49
commit 2a42841f3e
5 changed files with 0 additions and 79 deletions

View File

@ -1,3 +0,0 @@
<table>
<tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr><tr><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td></tr>
</table>

View File

@ -1,3 +0,0 @@
<table>
<% for row in table { %><tr><% for col in row { %><td><%= col %></td><% } %></tr><% } %>
</table>

View File

@ -1,11 +0,0 @@
<html>
<head>
<title>2015</title>
</head>
<body>
<h1>CSL 2015</h1>
<ul>
<li class="champion"><b>Jiangsu</b>: 43</li><li class=""><b>Beijing</b>: 27</li><li class=""><b>Guangzhou</b>: 22</li><li class=""><b>Shandong</b>: 12</li>
</ul>
</body>
</html>

View File

@ -1,11 +0,0 @@
<html>
<head>
<title><%= year %></title>
</head>
<body>
<h1>CSL <%= year %></h1>
<ul>
<% for (i, team) in teams.iter().enumerate() { %><li class="<% if i == 0 { %>champion<% } %>"><b><%- team.name %></b>: <%= team.score %></li><% } %>
</ul>
</body>
</html>

View File

@ -112,57 +112,6 @@ fn continue_break() {
assert_render("continue-break", ContinueBreak);
}
#[derive(TemplateOnce)]
#[template(path = "big-table.stpl", rm_whitespace = true)]
struct BigTable {
table: Vec<Vec<usize>>,
}
#[test]
fn test_big_table() {
let table = (0..10).map(|_| (0..10).collect()).collect();
assert_render("big-table", BigTable { table });
}
#[derive(TemplateOnce)]
#[template(path = "teams.stpl", rm_whitespace = true)]
struct Teams {
year: u16,
teams: Vec<Team>,
}
struct Team {
name: String,
score: u8,
}
#[test]
fn test_teams() {
let teams = Teams {
year: 2015,
teams: vec![
Team {
name: "Jiangsu".into(),
score: 43,
},
Team {
name: "Beijing".into(),
score: 27,
},
Team {
name: "Guangzhou".into(),
score: 22,
},
Team {
name: "Shandong".into(),
score: 12,
},
],
};
assert_render("teams", teams);
}
#[derive(TemplateOnce)]
#[template(path = "techempower.stpl", rm_whitespace = true)]
struct Techempower {