Compare commits

...

5 Commits
master ... v8

Author SHA1 Message Date
Dean Karn 0ec626c79f
Merge pull request #442 from sssinsi/v8-fix-printascii-tag 5 years ago
sssinsi 139e7737ad fix tag name from v8 5 years ago
Dean Karn 5f1438d3fc Merge pull request #297 from go-playground/v8-backport-test-fixes 7 years ago
Dean Karn a298cfcee1 Backport false possitive test fixes 7 years ago
Dean Karn fd299f5b79 Update README.md 8 years ago
  1. 5
      README.md
  2. 2
      doc.go
  3. 8
      validator_test.go

@ -1,8 +1,7 @@
Package validator
================
<img align="right" src="https://raw.githubusercontent.com/go-playground/validator/v8/logo.png">
[![Join the chat at https://gitter.im/bluesuncorp/validator](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/go-playground/validator?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
![Project status](https://img.shields.io/badge/version-8.18.1-green.svg)
<img align="right" src="https://raw.githubusercontent.com/go-playground/validator/v8/logo.png">[![Join the chat at https://gitter.im/bluesuncorp/validator](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/go-playground/validator?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
![Project status](https://img.shields.io/badge/version-8.18.2-green.svg)
[![Build Status](https://semaphoreci.com/api/v1/projects/ec20115f-ef1b-4c7d-9393-cc76aba74eb4/530054/badge.svg)](https://semaphoreci.com/joeybloggs/validator)
[![Coverage Status](https://coveralls.io/repos/go-playground/validator/badge.svg?branch=v8&service=github)](https://coveralls.io/github/go-playground/validator?branch=v8)
[![Go Report Card](https://goreportcard.com/badge/github.com/go-playground/validator)](https://goreportcard.com/report/github.com/go-playground/validator)

@ -665,7 +665,7 @@ Printable ASCII
This validates that a string value contains only printable ASCII characters.
NOTE: if the string is blank, this validates as true.
Usage: asciiprint
Usage: printascii
Multi-Byte Characters

@ -4839,7 +4839,7 @@ func TestIsGt(t *testing.T) {
errs = validate.Field(tm, "gt")
Equal(t, errs, nil)
t2 := time.Now().UTC()
t2 := time.Now().UTC().Add(-time.Hour)
errs = validate.Field(t2, "gt")
NotEqual(t, errs, nil)
@ -4875,7 +4875,7 @@ func TestIsGte(t *testing.T) {
errs := validate.Field(t1, "gte")
Equal(t, errs, nil)
t2 := time.Now().UTC()
t2 := time.Now().UTC().Add(-time.Hour)
errs = validate.Field(t2, "gte")
NotEqual(t, errs, nil)
@ -4920,7 +4920,7 @@ func TestIsLt(t *testing.T) {
i := true
PanicMatches(t, func() { validate.Field(i, "lt") }, "Bad field type bool")
t1 := time.Now().UTC()
t1 := time.Now().UTC().Add(-time.Hour)
errs = validate.Field(t1, "lt")
Equal(t, errs, nil)
@ -4957,7 +4957,7 @@ func TestIsLte(t *testing.T) {
i := true
PanicMatches(t, func() { validate.Field(i, "lte") }, "Bad field type bool")
t1 := time.Now().UTC()
t1 := time.Now().UTC().Add(-time.Hour)
errs := validate.Field(t1, "lte")
Equal(t, errs, nil)

Loading…
Cancel
Save