소스 검색

Unit Test for Issue #79

tags/0.5.0-vsc
thegrandpoobah 15 년 전
부모
커밋
38bfdf0c72
2개의 변경된 파일37개의 추가작업 그리고 1개의 파일을 삭제
  1. +18
    -0
      test/unit.compiler.js
  2. +19
    -1
      test/unit.interpreter.js

+ 18
- 0
test/unit.compiler.js 파일 보기

@@ -685,4 +685,22 @@ test("Regression Suite", function() {
'mustache is awesome!',
'Issue 46'
);
// matches Issue #79
equals(
Mustache.to_html(
'{{#inner}}{{f}}{{#inner}}{{b}}{{/inner}}{{/inner}}'
, {
inner: [{
f: 'foo'
, inner: [{
b: 'bar'
}]
}]
}
, {}
)
, 'foobar'
, 'Nested Sections with the same name'
);
});

+ 19
- 1
test/unit.interpreter.js 파일 보기

@@ -588,7 +588,7 @@ test("Demo", function() {
});

test("Regression Suite", function() {
expect(3);
expect(4);
// matches bug_11_eating_whitespace.html
equals(
@@ -622,4 +622,22 @@ test("Regression Suite", function() {
'mustache is awesome!',
'Issue 46'
);
// matches Issue #79
equals(
Mustache.to_html(
'{{#inner}}{{f}}{{#inner}}{{b}}{{/inner}}{{/inner}}'
, {
inner: [{
f: 'foo'
, inner: [{
b: 'bar'
}]
}]
}
, {}
)
, 'foobar'
, 'Nested Sections with the same name'
);
});

불러오는 중...
취소
저장