-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Korean future fix #40
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,28 +107,48 @@ describe('Korean', () => { | |
}); | ||
}); | ||
describe('Future Tense', () => { | ||
it('should conjugate regular verbs correctly', () => { | ||
it('should conjugate verbs with stem ending with a vowel correctly', () => { | ||
const kc = new Korean(); | ||
let presentWord = kc.conjugate('하다', {tense: 'future'}); | ||
expect(presentWord).to.equal('할꺼야'); | ||
let futureWord = kc.conjugate('하다', {tense: 'future'}); | ||
expect(futureWord).to.equal('할꺼야'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it should be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @minsooshin Thanks! I'll add a fix for this too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @minsooshin I looked it up, http://www.koreanwikiproject.com/wiki/A/V_%2B_(으)ㄹ_거예요 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @cecilebertin that's right. Also, the example you provide is to senior people (Informal polite). So, for your test cases, I think |
||
|
||
presentWord = kc.conjugate('오다', {tense: 'future'}); | ||
expect(presentWord).to.equal('올꺼야'); | ||
futureWord = kc.conjugate('오다', {tense: 'future'}); | ||
expect(futureWord).to.equal('올꺼야'); | ||
|
||
presentWord = kc.conjugate('비다', {tense: 'future'}); | ||
expect(presentWord).to.equal('빌꺼야'); | ||
futureWord = kc.conjugate('비다', {tense: 'future'}); | ||
expect(futureWord).to.equal('빌꺼야'); | ||
}); | ||
it('should conjugate verbs with stem ending with a ㄹ consonant correctly', | ||
() => { | ||
const kc = new Korean(); | ||
let futureWord = kc.conjugate('놀다', {tense: 'future'}); | ||
expect(futureWord).to.equal('놀꺼야'); | ||
|
||
futureWord = kc.conjugate('날다', {tense: 'future'}); | ||
expect(futureWord).to.equal('날꺼야'); | ||
|
||
futureWord = kc.conjugate('울다', {tense: 'future'}); | ||
expect(futureWord).to.equal('울꺼야'); | ||
}); | ||
it('should conjugate words with ㄹ final vowel correctly', () => { | ||
it('should conjugate verbs with stem ending with ㅂ consonant correctly', | ||
() => { | ||
const kc = new Korean(); | ||
let presentWord = kc.conjugate('놀다', {tense: 'future'}); | ||
expect(presentWord).to.equal('놀꺼야'); | ||
let futureWord = kc.conjugate('춥다', {tense: 'future'}); | ||
expect(futureWord).to.equal('추울꺼야'); | ||
|
||
presentWord = kc.conjugate('날다', {tense: 'future'}); | ||
expect(presentWord).to.equal('날꺼야'); | ||
futureWord = kc.conjugate('덥다', {tense: 'future'}); | ||
expect(futureWord).to.equal('더울꺼야'); | ||
}); | ||
it('should conjugate verbs with stem ending with other consonants correctly', | ||
() => { | ||
const kc = new Korean(); | ||
let futureWord = kc.conjugate('있다', {tense: 'future'}); | ||
expect(futureWord).to.equal('있을꺼야'); | ||
|
||
presentWord = kc.conjugate('울다', {tense: 'future'}); | ||
expect(presentWord).to.equal('울꺼야'); | ||
futureWord = kc.conjugate('먹다', {tense: 'future'}); | ||
expect(futureWord).to.equal('먹을꺼야'); | ||
}); | ||
|
||
}); | ||
describe('Present Continuous Tense', () => { | ||
it('should conjugate verbs correctly', () => { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we simply return
String.fromCharCode(unicodeTotal)
without assigning?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@minsooshin you're right. I'll fix that right away.