<commit_before>import 'dart:io';

import 'package:twitter/twitter.dart';
import 'package:test/test.dart';

main(){ 
	test("Simple API TEST",() async {
		var envVars = Platform.environment;
		var twitter = new Twitter(envVars['CONSUMER_KEY'],envVars['CONSUMER_SECRET'],
			envVars['ACCESS_TOKEN'],envVars['ACCESS_TOKEN_SECRET']);	
		var response = await twitter.request("GET","statuses/user_timeline.json");
		expect(response.body,isNotNull);
	});
}
<commit_msg>add Test for new Constrcutor<commit_after>import 'dart:io';

import 'package:twitter/twitter.dart';
import 'package:test/test.dart';

main() {
  test("Simple API TEST", () async {
    var envVars = Platform.environment;
    var twitter = new Twitter(
        envVars['CONSUMER_KEY'],
        envVars['CONSUMER_SECRET'],
        envVars['ACCESS_TOKEN'],
        envVars['ACCESS_TOKEN_SECRET']);
    var response = await twitter.request("GET", "statuses/user_timeline.json");
    expect(response.body, isNotNull);
  });
  test("Twitter.fromMap Test", () async {
    var envVars = Platform.environment;
    Map keyMap = {
      "consumerKey": envVars['CONSUMER_KEY'],
      "consumerSecret": envVars['CONSUMER_SECRET'],
      "accessToken": envVars['ACCESS_TOKEN'],
      "accessSecret": envVars['ACCESS_TOKEN_SECRET']
    };
    var twitter = new Twitter.fromMap(keyMap);
    var response = await twitter.request("GET", "statuses/user_timeline.json");
    expect(response.body,isNotNull);
  });
}

{'fraction_non_alphanumeric': 0.15315934065934067, 'fraction_numerical': 0.0, 'mean_word_length': 4.713725490196079, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2043528', 'n_tokens_mistral': 489, 'n_tokens_neox': 487, 'n_words': 83}