Plato on Github
Report Home
node_modules/es5-ext/test/string/#/capitalize.js
Maintainability
72.81
Lines of code
9
Difficulty
3.60
Estimated Errors
0.08
Function weight
By Complexity
By SLOC
'use strict'; module.exports = function (t, a) { a(t.call('raz'), 'Raz', "Word"); a(t.call('BLA'), 'BLA', "Uppercase"); a(t.call(''), '', "Empty"); a(t.call('a'), 'A', "One letter"); a(t.call('this is a test'), 'This is a test', "Sentence"); };