To me this sounds like more of whatever framework you are using to actually
write your tests

you can probably do a regex to verify the format but without some more
details of what exactly you want to compare it may be difficult to help out

I would ask why are you trying to test this and what your test looks like
now

On Fri, Aug 10, 2012 at 12:23 PM, Ry <[email protected]> wrote:

> anyone familiar with how to write an assertion for a date format. For
> instance, I am testing a date field to ensure it doesn't accept bad
> formatting or unreal dates. Our page will auto revert the date to something
> recent when the page refreshes so I want to write an assert to say I expect
> mm/dd/2012
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to