• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CS2113-AY1819S2-T09-1 / main / 307
92%

Build:
DEFAULT BRANCH: master
Ran 15 Mar 2019 04:24AM UTC
Jobs 1
Files 106
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
307

push

travis-ci

lycjackie
Model: update `Code#VALIDATION_REGEX` (#77)

`Code#VALIDATION_REGEX` accepts any strings of any characters (except
blank). However, the constraints imposed on `Code` is too permissive.
Codes should begin with two alphabets, followed by four digits, and may
optionally end with an alphabet. Blank should continue to be treated as
invalid `Code`.

Let's impose stricter restrictions on `Code` by:
* updating `Code#VALIDATION_REGEX`
* updating `Code#MESSAGE_CONSTRAINTS` to reflect the changes accordingly

In addition, let's also update all affected unit tests.

Note: Fixed a minor typo in `SampleDataUtil#CS2102`.

1718 of 2102 relevant lines covered (81.73%)

0.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 307.1 15 Mar 2019 04:24AM UTC 0
81.73
Travis Job 307.1
Source Files on build 307
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #307
  • bdb16cf8 on github
  • Prev Build on master (#304)
  • Next Build on master (#319)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc