Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestJoinRemovesEmptyParts (0.45 sec)

  1. pkg/test/util/yml/parts_test.go

        b2
    `
    	expected := []string{
    		`b
        b1
        ---
        b2`,
    	}
    
    	g := NewWithT(t)
    	parts := yml.SplitString(doc)
    	g.Expect(parts).To(Equal(expected))
    }
    
    func TestJoinRemovesEmptyParts(t *testing.T) {
    	parts := []string{
    		`---
    ---
    ---
    `,
    		`
    ---
    a
    ---
    `,
    		`
    b
    ---
    `,
    	}
    
    	expected := `a
    ---
    b`
    
    	g := NewWithT(t)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top