Download testbed/django__django/js_tests/admin/URLify.test.js from hc99/FEA-Bench: direct link, hf CLI and curl.
- Browser
- Download file 837 Bytes
-
https://huggingface.co/datasets/hc99/FEA-Bench/resolve/main/testbed/django__django/js_tests/admin/URLify.test.js
- Command line
-
hf download hf://datasets/hc99/FEA-Bench/testbed/django__django/js_tests/admin/URLify.test.js
-
curl -L -o URLify.test.js https://huggingface.co/datasets/hc99/FEA-Bench/resolve/main/testbed/django__django/js_tests/admin/URLify.test.js
837 Bytes
| /* global QUnit, URLify */ | |
| ; | |
| QUnit.module('admin.URLify'); | |
| QUnit.test('empty string', function(assert) { | |
| assert.strictEqual(URLify('', 8, true), ''); | |
| }); | |
| QUnit.test('preserve nonessential words', function(assert) { | |
| assert.strictEqual(URLify('the D is silent', 15, true), 'the-d-is-silent'); | |
| }); | |
| QUnit.test('strip non-URL characters', function(assert) { | |
| assert.strictEqual(URLify('D#silent@', 7, true), 'dsilent'); | |
| }); | |
| QUnit.test('merge adjacent whitespace', function(assert) { | |
| assert.strictEqual(URLify('D silent', 8, true), 'd-silent'); | |
| }); | |
| QUnit.test('trim trailing hyphens', function(assert) { | |
| assert.strictEqual(URLify('D silent always', 9, true), 'd-silent'); | |
| }); | |
| QUnit.test('non-ASCII string', function(assert) { | |
| assert.strictEqual(URLify('Kaupa-miða', 255, true), 'kaupa-miða'); | |
| }); | |