HomePhorge

(PUP-485) Change format for actual type in assert_type error message
76bfc917c83eUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-485) Change format for actual type in assert_type error message

Instead of showing all details about the inferred type of the
given value, it is now made generic before output. This is good
for the simpler cases where it is confusing to see e.g. Integer[11,11]
when the value was 11 (an exact range). It does however mean that
information is "lost" when matching against more complex types. A more
complex "type diff" may be required to provide really good output.
Another alternative is to just display the value (not the type) of the
actual - but that may be very long if it is an Array or Hash.

Details

Provenance
Henrik Lindberg <henrik.lindberg@cloudsmith.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUaa9ad6fe562f: (maint) Improve documentation ofthe assert_type function
Branches
Unknown
Tags
Unknown

Event Timeline

Henrik Lindberg <henrik.lindberg@cloudsmith.com> committed rPU76bfc917c83e: (PUP-485) Change format for actual type in assert_type error message (authored by Henrik Lindberg <henrik.lindberg@cloudsmith.com>).Apr 5 2014, 12:39 AM