Skip to content

Commit

Permalink
Update generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
kvz committed Apr 4, 2024
1 parent a3c14ec commit 9896440
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/python/string/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ module.exports.ascii_letters = require('./ascii_letters')
module.exports.ascii_lowercase = require('./ascii_lowercase')
module.exports.ascii_uppercase = require('./ascii_uppercase')
module.exports.capwords = require('./capwords')
module.exports.punctuation = require('./punctuation')
6 changes: 6 additions & 0 deletions test/languages/c/stdio/test-sprintf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ describe('src/c/stdio/sprintf.js (tested in test/languages/c/stdio/test-sprintf.
expect(result).to.deep.equal(expected)
done()
})
it('should pass example 2', function (done) {
var expected = 'Param is a 90% good boy.'
var result = sprintf('%s is a %d%% %s %s.', 'Param', 90, 'good', 'boy')
expect(result).to.deep.equal(expected)
done()
})
})
6 changes: 6 additions & 0 deletions test/languages/php/strings/test-str_ireplace.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@ describe('src/php/strings/str_ireplace.js (tested in test/languages/php/strings/
expect(result).to.deep.equal(expected)
done()
})
it('should pass example 3', function (done) {
var expected = 'aaa'
var result = str_ireplace('', '.', 'aaa')
expect(result).to.deep.equal(expected)
done()
})
})
6 changes: 6 additions & 0 deletions test/languages/php/strings/test-str_replace.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,10 @@ describe('src/php/strings/str_replace.js (tested in test/languages/php/strings/t
expect(result).to.deep.equal(expected)
done()
})
it('should pass example 5', function (done) {
var expected = 'aaa'
var result = str_replace('', '.', 'aaa')
expect(result).to.deep.equal(expected)
done()
})
})
14 changes: 14 additions & 0 deletions test/languages/python/string/test-punctuation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// warning: This file is auto generated by `npm run build:tests`
// Do not edit by hand!
process.env.TZ = 'UTC'
var expect = require('chai').expect
var punctuation = require('../../../../src/python/string/punctuation.js') // eslint-disable-line no-unused-vars,camelcase

describe('src/python/string/punctuation.js (tested in test/languages/python/string/test-punctuation.js)', function () {
it('should pass example 1', function (done) {
var expected = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"
var result = punctuation()
expect(result).to.deep.equal(expected)
done()
})
})

0 comments on commit 9896440

Please sign in to comment.