DateTime specs are failing
Open
@thinca is already working on this.
Since Apr 12, 2015.
- Dominant language
- Vim Script
- Stars
- 587
- Forks
- 64
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 1
Description
前にgist貼ってたやつです。travisでは環境設定でうまくいっているので、ローカル開発環境でもそんな感じでアレできると便利そうです。
$ themis --runtimepath ~/.vimbundles/vimproc --reporter dot
.....................................................................................................................................................................................................................................................F...............F..F...............FFFFFF...................................FFFF...............FF..........................................................................................................................P......................................................................................................................
Pending:
1) Text.Sexp parse
Vital.Text.Sexp: any function call needs if_lua
Failures:
1) Data.OrderedSet Fn_identifier stringifies to a key name of a Dictionary
Error occurred line:
3: Assert Equals(set.to_list(), [ CreateClass('FooClass', 'foo'), CreateClass('BarClass', 'bar'), CreateClass('BazClass', 'baz'), CreateClass('FooClass', 'hoge'),])
The equivalent values were expected, but it was not the case.
expected: [{'name': 'FooClass', 'mem1': 1428853136, 'mem2': 1428853136, 'mem3': 1428853136, 'value': 'foo'}, {'name': 'BarClass', 'mem1': 1428853136, 'mem2': 1428853136, 'mem3': 1428853136, 'value': 'bar'}, {'name': 'BazClass', 'mem1': 1428853136, 'mem2': 1428853136, 'mem3': 1428853136, 'value': 'baz'}, {'name': 'FooClass', 'mem1': 1428853136, 'mem2': 1428853136, 'mem3': 1428853136, 'value': 'hoge'}]
got: [{'name': 'FooClass', 'mem1': 1428853135, 'mem2': 1428853135, 'mem3': 1428853135, 'value': 'foo'}, {'name': 'BarClass', 'mem1': 1428853135, 'mem2': 1428853135, 'mem3': 1428853135, 'value': 'bar'}, {'name': 'BazClass', 'mem1': 1428853135, 'mem2': 1428853135, 'mem3': 1428853135, 'value': 'baz'}, {'name': 'FooClass', 'mem1': 1428853135, 'mem2': 1428853135, 'mem3': 1428853135, 'value': 'hoge'}]
2) DateTime .from_unix_time() makes a DateTime object from unix time
Error occurred line:
2: Assert Equals(dt.to_string(), '2012-01-02 03:04:05 +0900')
The equivalent values were expected, but it was not the case.
expected: '2012-01-02 03:04:05 +0900'
got: '2012-01-02 02:04:05 +0900'
3) DateTime .from_format() can treat the some format specifier
Error occurred line:
3: Assert Equals(dt.month(), 1)
The equivalent values were expected, but it was not the case.
expected: 1
got: 2
4) DateTime .month_names() with {longname} is 0 returns the list of name of months
Error occurred line:
2: Assert Equals(names, ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'])
The equivalent values were expected, but it was not the case.
expected: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
got: ['Dec', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov']
5) DateTime .month_names() with {longname} is 1 returns the list of long name of months
Error occurred line:
2: Assert Equals(names, ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'])
The equivalent values were expected, but it was not the case.
expected: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
got: ['December', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November']
6) DateTime .weekday_names() with {longname} is 0 returns the list of name of weekdays
Error occurred line:
2: Assert Equals(names, ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'])
The equivalent values were expected, but it was not the case.
expected: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
got: ['Sat', 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri']
7) DateTime .weekday_names() with {longname} is 1 returns the list of long name of weekdays
Error occurred line:
2: Assert Equals(names, ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'])
The equivalent values were expected, but it was not the case.
expected: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
got: ['Saturday', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday']
8) DateTime .am_pm_names() {lowercase} = 0 returns the list of am/pm names in uppercase
Error occurred line:
2: Assert Equals(names, ['AM', 'PM'])
The equivalent values were expected, but it was not the case.
expected: ['AM', 'PM']
got: ['PM', 'AM']
9) DateTime .am_pm_names() {lowercase} is 1 returns the list of am/pm names in lowercase
Error occurred line:
2: Assert Equals(names, ['am', 'pm'])
The equivalent values were expected, but it was not the case.
expected: ['am', 'pm']
got: ['pm', 'am']
10) DateTime DateTime object .format() symbol "%a" is the abbreviated weekday name
Error occurred line:
1: Assert Equals(dt.format('%a', 'C'), 'Mon')
The equivalent values were expected, but it was not the case.
expected: 'Mon'
got: 'Sun'
11) DateTime DateTime object .format() symbol "%A" is the full weekday name
Error occurred line:
1: Assert Equals(dt.format('%A', 'C'), 'Monday')
The equivalent values were expected, but it was not the case.
expected: 'Monday'
got: 'Sunday'
12) DateTime DateTime object .format() symbol "%b" is the abbreviated month name
Error occurred line:
1: Assert Equals(dt.format('%b', 'C'), 'Jan')
The equivalent values were expected, but it was not the case.
expected: 'Jan'
got: 'Dec'
13) DateTime DateTime object .format() symbol "%B" is the full month name
Error occurred line:
1: Assert Equals(dt.format('%B', 'C'), 'January')
The equivalent values were expected, but it was not the case.
expected: 'January'
got: 'December'
14) DateTime DateTime object .format() symbol "%p" is either "AM" or "PM" according to the given time value
Error occurred line:
1: Assert Equals(dt.format('%p', 'C'), 'AM')
The equivalent values were expected, but it was not the case.
expected: 'AM'
got: 'PM'
15) DateTime DateTime object .format() symbol "%P" is either "am" or "pm" according to the given time value
Error occurred line:
1: Assert Equals(dt.format('%P', 'C'), 'am')
The equivalent values were expected, but it was not the case.
expected: 'am'
got: 'pm'
tests 583
passes 567
pendings 1
fails 15
vimshell: exit 1 "themis --runtimepath /home/ujihisa/.vimbundles/vimproc --reporter dot"
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.