Add some tests for snake to camel case conversion.

This commit is contained in:
Tim Kuehn
2019-07-21 23:41:33 -07:00
parent b0319e7db9
commit 5c485fe608
4 changed files with 45 additions and 38 deletions

View File

@@ -6,7 +6,7 @@ use tarpc::context;
fn att_service_trait() {
use futures::future::{ready, Ready};
#[tarpc_plugins::service]
#[tarpc::service]
trait Foo {
async fn two_part(s: String, i: i32) -> (String, i32);
async fn bar(s: String) -> String;
@@ -33,7 +33,7 @@ fn att_service_trait() {
#[test]
fn syntax() {
#[tarpc_plugins::service]
#[tarpc::service]
trait Syntax {
#[deny(warnings)]
#[allow(non_snake_case)]