Add one more temporary template test for linux/arm - hugo - [fork] hugo port for 9front
 (HTM) git clone git@git.drkhsh.at/hugo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit e8ca52e93aefc0cc21bbb3c72a0290ad8a90743a
 (DIR) parent bca2d38e52a1f990892ef1de4a2724aa27f55a22
 (HTM) Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
       Date:   Wed, 13 Jan 2016 14:26:25 +0100
       
       Add one more temporary template test for linux/arm
       
       See #1771
       
       Diffstat:
         M tpl/template_test.go                |      28 +++++++++++++++++++++++++++-
       
       1 file changed, 27 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/tpl/template_test.go b/tpl/template_test.go
       @@ -94,7 +94,7 @@ html lang=en
        
        // A Go stdlib test for linux/arm. Will remove later.
        // See #1771
       -func TestBigInteger(t *testing.T) {
       +func TestBigIntegerFunc(t *testing.T) {
                var func1 = func(v int64) error {
                        return nil
                }
       @@ -116,6 +116,32 @@ func TestBigInteger(t *testing.T) {
        
        }
        
       +// A Go stdlib test for linux/arm. Will remove later.
       +// See #1771
       +type BI struct {
       +}
       +
       +func (b BI) A(v int64) error {
       +        return nil
       +}
       +func TestBigIntegerMethod(t *testing.T) {
       +
       +        data := &BI{}
       +
       +        tpl, err := template.New("foo2").Parse("{{ .A 3e80 }}")
       +        if err != nil {
       +                t.Fatal("Parse failed:", err)
       +        }
       +        err = tpl.ExecuteTemplate(ioutil.Discard, "foo2", data)
       +
       +        if err == nil {
       +                t.Fatal("Execute should have failed")
       +        }
       +
       +        t.Log("Got expected error:", err)
       +
       +}
       +
        // Test for bugs discovered by https://github.com/dvyukov/go-fuzz
        func TestTplGoFuzzReports(t *testing.T) {