Get started with a prettier server package
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
parent
76191fe47d
commit
eced842dfc
7 changed files with 102 additions and 0 deletions
14
crates/prettier/src/prettier.rs
Normal file
14
crates/prettier/src/prettier.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
pub fn add(left: usize, right: usize) -> usize {
|
||||
left + right
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue