{"size": 447, "ext": "js", "max_stars_repo_path": "test/trim.js", "max_stars_repo_name": "1point7point4/sanctuary", "max_stars_repo_stars_event_min_datetime": "2019-06-22T12:21:42.000Z", "max_stars_repo_stars_event_max_datetime": "2021-05-21T06:19:09.000Z", "max_issues_repo_path": "test/trim.js", "max_issues_repo_name": "pennynjery/sanctuary", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/trim.js", "max_forks_repo_name": "pennynjery/sanctuary", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.4347826087, "max_line_length": 58, "alphanum_fraction": 0.4250559284}
'use strict';

const S = require ('..');

const eq = require ('./internal/eq');


test ('trim', () => {

  eq (typeof S.trim) ('function');
  eq (S.trim.length) (1);
  eq (S.show (S.trim)) ('trim :: String -> String');

  eq (S.trim ('')) ('');
  eq (S.trim (' ')) ('');
  eq (S.trim ('x')) ('x');
  eq (S.trim (' x')) ('x');
  eq (S.trim ('x ')) ('x');
  eq (S.trim (' x ')) ('x');
  eq (S.trim ('\n\r\t x \n\r\t x \n\r\t')) ('x \n\r\t x');

});
