Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
GrayJack committed Sep 6, 2020
1 parent e59725d commit a754cd4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 9 deletions.
24 changes: 16 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
# Changelog

All notable changes to the library should be put here

## Unreleased ~ 0.1.2
## Unreleased ~ 0.2.0

## 0.1.2

### Changes
- Implement Display for `JanetType`

- Implement Display for `JanetType`

### Bug Fixes
- Fix `From<char>` for `JanetString` not considering that char can be represented with more than 1 byte in UTF-8

- Fix `From<char>` for `JanetString` not considering that char can be represented with more than 1 byte in UTF-8

## 0.1.0 ~ 0.1.1

### Changes
- Basic Janet types manipulation
- A way to run the Janet runtime
- Macros to create Janet collections
- Macro to cause Janet Panics
- Macro to catch Rust Panic and tranform to Janet Panic

- Basic Janet types manipulation
- A way to run the Janet runtime
- Macros to create Janet collections
- Macro to cause Janet Panics
- Macro to catch Rust Panic and tranform to Janet Panic
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "janetrs"
version = "0.1.1"
version = "0.1.2"
authors = ["Eric Shimizu Karbstein <[email protected]>"]
description = "High level binding for Janet programming language"
repository = "https://github.com/GrayJack/janetrs"
Expand Down
11 changes: 11 additions & 0 deletions src/types/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1731,4 +1731,15 @@ mod tests {
assert_eq!(expected[2], str1[2]);
assert_eq!(expected[3], str1[3]);
}

#[test]
#[cfg_attr(not(feature = "std"), serial)]
fn from_char() {
let _client = JanetClient::init().unwrap();

let expected = JanetString::new("α");
let test = JanetString::from('α');

assert_eq!(test, expected);
}
}

0 comments on commit a754cd4

Please sign in to comment.