GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - longbridge/assert: Extends stretchr/testify/assert for add more useful methods.

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
assert.go
assert.go
 
 
assert_equal_html.go
assert_equal_html.go
 
 
assert_equal_html_test.go
assert_equal_html_test.go
 
 
assert_test.go
assert_test.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 

Repository files navigation

Assert

Go

🍯 Requirement Go 1.18+ for Generics, lower Go version please use 0.x

Extends stretchr/testify/assert for add more useful methods.

  • assert.Equal - asserts values equal, but ignore type.
  • assert.EqualHTML - asserts HTML equal, ignore spaces.

Installation

go get github.com/longbridge/assert

Usage

package some_test

import (
  "github.com/longbridge/assert"
)

func TestSomeMethod(t *testing.T) {
	assert.EqualHTML(t, "<p>Hello world</p><p>This is next line</p>", `
		<p>Hello world</p>
		<p>This is next line</p>
	`)
}

License

MIT

About

Extends stretchr/testify/assert for add more useful methods.

Topics

assertassertionassertionstesting

Resources

Readme
MIT license
Activity
Custom properties

Stars

2 stars

Watchers

7 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.