/*
 * line_ending.rs
 *
 * Copyright (C) 2023 Posit Software, PBC. All rights reserved.
 *
 */

use crate::line_ending::POSIX_LINE_ENDING;

pub const NATIVE_LINE_ENDING: &str = POSIX_LINE_ENDING;

#[test]
fn test_convert_line_endings_native_unix() {
    use crate::line_ending::convert_line_endings;
    use crate::line_ending::LineEnding;

    let res = convert_line_endings("\r\n", LineEnding::Native);
    assert_eq!(res, "\n");
}
