mirror of
https://github.com/servo/servo.git
synced 2025-06-14 19:34:29 +00:00
I was concerned for a little bit that passing just whitespace to the split_html_space_chars function would result in len > 0, so I wrote this small unit test to make sure it does the right thing. Even though it does do the right thing, I think there's still value in committing the unit test.
16 lines
479 B
Rust
16 lines
479 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#![feature(plugin, custom_derive, heap_api)]
|
|
#![plugin(plugins)]
|
|
extern crate util;
|
|
extern crate libc;
|
|
extern crate euclid;
|
|
|
|
#[cfg(test)] mod cache;
|
|
#[cfg(test)] mod logical_geometry;
|
|
#[cfg(test)] mod task;
|
|
#[cfg(test)] mod vec;
|
|
#[cfg(test)] mod mem;
|
|
#[cfg(test)] mod str;
|