{"size": 865, "ext": "js", "max_stars_repo_path": "tests/last_one_of.js", "max_stars_repo_name": "Inndy/last-line", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tests/last_one_of.js", "max_issues_repo_name": "Inndy/last-line", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/last_one_of.js", "max_forks_repo_name": "Inndy/last-line", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.3783783784, "max_line_length": 50, "alphanum_fraction": 0.6497109827}
const last_one_of = require('../libs/last_one_of')

module.exports = {
	empty: function (test) {
		test.equals(last_one_of([]), undefined)
		test.done()
	},
	single_element: function (test) {
		test.equals(last_one_of([689]), 689)
		test.equals(last_one_of([87]), 87)
		test.equals(last_one_of([71.22]), 71.22)
		test.done()
	},
	easy: function (test) {
		test.equals(last_one_of([1,2,3,4]), 4)
		test.done()
	},
	arguments: function (test) {
		test.equals(last_one_of(arguments), test)
		test.done()
	},
	buffer: function (test) {
		const buff = new Buffer(66666666)
		test.equals(last_one_of(buff), buff[66666665])
		test.done()
	},
	string_ascii: function (test) {
		test.equals(last_one_of('68987'), '7')
		test.equals(last_one_of('...---...'), '.')
		test.done()
	},
	string_cjk: function (test) {
		test.equals(last_one_of('948794狂'), '狂')
		test.done()
	}
}
